summaryrefslogtreecommitdiff
path: root/oui.h
blob: 564e4a1e5c77e750839ed028660b40452a40c7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef OUI_H
#define OUI_H

extern const char *lookup_vendor(unsigned int id);
extern void dissector_init_oui(void);
extern void dissector_cleanup_oui(void);

static inline const char *lookup_vendor_str(unsigned int id)
{
	return lookup_vendor(id) ? : "Unknown";
}

#endif /* OUI_H */
tion value='2'>stat only
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>2016-08-04 15:14:28 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-04 19:07:30 +0200
commit90579d4b577154606a54cab9771e15a41867b79b (patch)
treeab0f0d87d5073848ce63b22fc499c05c264195b3
parent921dbe52b40b2573d9a0e8337c768930bef25fb4 (diff)
greybus: audio: Remove un-necessary goto statement
For most of the helper functions, goto statement is widely used. It was originally used with an intent of single exit point for the function with some cleanup required. This is no more the case. So, simplify code by avoiding un-necessary gotos. Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat