diff options
author | Mike McCormack <mikem@ring3k.org> | 2010-09-24 09:40:01 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-30 06:15:19 (GMT) |
commit | 52cab756a2da989859322aed0573a851aa88731c (patch) | |
tree | 03d40a5ed28032bdd5fbd5fc6241fafd2bac5c47 /drivers/staging/rtl8192e/dot11d.h | |
parent | a922a4b778dc94f697b18aac85425340ca3aeffc (diff) | |
download | linux-52cab756a2da989859322aed0573a851aa88731c.tar.xz |
Staging: rtl8192e: Convert macros to inline functions
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e/dot11d.h')
-rw-r--r-- | drivers/staging/rtl8192e/dot11d.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index 5b0e2db..3bec1a4 100644 --- a/drivers/staging/rtl8192e/dot11d.h +++ b/drivers/staging/rtl8192e/dot11d.h @@ -41,9 +41,11 @@ typedef struct _RT_DOT11D_INFO { DOT11D_STATE State; } RT_DOT11D_INFO, *PRT_DOT11D_INFO; -#define eqMacAddr(a, b) (((a)[0] == (b)[0] && (a)[1] == (b)[1] && (a)[2] == \ - (b)[2] && (a)[3] == (b)[3] && (a)[4] == (b)[4] && \ - (a)[5] == (b)[5]) ? 1 : 0) +static inline bool eqMacAddr(u8 *a, u8 *b) +{ + return a[0] == b[0] && a[1] == b[1] && a[2] == b[2] && + a[3] == b[3] && a[4] == b[4] && a[5] == b[5]; +} #define cpMacAddr(des, src) ((des)[0] = (src)[0], (des)[1] = (src)[1], \ (des)[2] = (src)[2], (des)[3] = (src)[3], \ |