]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: rtl8192e: Convert cpMacAddr macro to inline function
authorMike McCormack <mikem@ring3k.org>
Mon, 27 Dec 2010 12:49:49 +0000 (21:49 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 00:14:10 +0000 (16:14 -0800)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/dot11d.h

index 86660833d11063ac1b8dfa5694e1727a89e5a2b3..106ebcfa7d7dd07e6233f35e3808c45493d8e3b2 100644 (file)
@@ -41,9 +41,10 @@ typedef struct _RT_DOT11D_INFO {
        DOT11D_STATE State;
 } RT_DOT11D_INFO, *PRT_DOT11D_INFO;
 
-#define cpMacAddr(des, src) ((des)[0] = (src)[0], (des)[1] = (src)[1], \
-                       (des)[2] = (src)[2], (des)[3] = (src)[3], \
-                       (des)[4] = (src)[4], (des)[5] = (src)[5])
+static inline void cpMacAddr(unsigned char *des, unsigned char *src)
+{
+       memcpy(des, src, 6);
+}
 
 #define GET_DOT11D_INFO(__pIeeeDev) ((PRT_DOT11D_INFO) \
                        ((__pIeeeDev)->pDot11dInfo))