From: Mike McCormack Date: Mon, 27 Dec 2010 12:49:49 +0000 (+0900) Subject: Staging: rtl8192e: Convert cpMacAddr macro to inline function X-Git-Tag: MMI-PSA29.97-13-9~20521^2~885 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd1847332a5e5c6ac945ad12db0bc49871481d3a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: rtl8192e: Convert cpMacAddr macro to inline function Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index 86660833d110..106ebcfa7d7d 100644 --- a/drivers/staging/rtl8192e/dot11d.h +++ b/drivers/staging/rtl8192e/dot11d.h @@ -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))