[PATCH] patch "staging: rtl8723au: os_dep: declared cfg80211_infrastructure_mode static
Declared cfg80211_infrastructure_mode method static to remove sparse warning Signed-off-by: Rahul Garg --- drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c index f2615dc..bd6953a 100644 --- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c @@ -1119,7 +1119,7 @@ exit: return ret; } -int cfg80211_infrastructure_mode(struct rtw_adapter *padapter, +static int cfg80211_infrastructure_mode(struct rtw_adapter *padapter, enum nl80211_iftype ifmode) { struct mlme_priv *pmlmepriv = &padapter->mlmepriv; -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: vt6655: coding style: Fixed commenting style Few lines were crossing 80 characters limit
Signed-off-by: Rahul Garg --- drivers/staging/vt6655/tcrc.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/staging/vt6655/tcrc.c b/drivers/staging/vt6655/tcrc.c index ed6868a..bf8d4c3 100644 --- a/drivers/staging/vt6655/tcrc.c +++ b/drivers/staging/vt6655/tcrc.c @@ -41,7 +41,7 @@ /*- Static Variables --*/ -// 32-bit CRC table +/* 32-bit CRC table */ static const unsigned long s_adwCrc32Table[256] = { 0xL, 0x77073096L, 0xEE0E612CL, 0x990951BAL, 0x076DC419L, 0x706AF48FL, 0xE963A535L, 0x9E6495A3L, @@ -129,13 +129,15 @@ static const unsigned long s_adwCrc32Table[256] = { * Return Value: CRC-32 * -*/ -unsigned long CRCdwCrc32(unsigned char *pbyData, unsigned int cbByte, unsigned long dwCrcSeed) +unsigned long CRCdwCrc32(unsigned char *pbyData, unsigned int cbByte, + unsigned long dwCrcSeed) { unsigned long dwCrc; dwCrc = dwCrcSeed; while (cbByte--) { - dwCrc = s_adwCrc32Table[(unsigned char)((dwCrc ^ (*pbyData)) & 0xFF)] ^ (dwCrc >> 8); + dwCrc = s_adwCrc32Table[(unsigned char)((dwCrc ^ (*pbyData)) + & 0xFF)] ^ (dwCrc >> 8); pbyData++; } @@ -185,7 +187,8 @@ unsigned long CRCdwGetCrc32(unsigned char *pbyData, unsigned int cbByte) * Return Value: CRC-32 * -*/ -unsigned long CRCdwGetCrc32Ex(unsigned char *pbyData, unsigned int cbByte, unsigned long dwPreCRC) +unsigned long CRCdwGetCrc32Ex(unsigned char *pbyData, + unsigned int cbByte, unsigned long dwPreCRC) { return CRCdwCrc32(pbyData, cbByte, dwPreCRC); } -- 1.7.9.5 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: vt6655: coding style: Fixed commenting style
fix coding style: use C89 comments, not C99 Signed-off-by: Rahul Garg --- drivers/staging/vt6655/tcrc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/tcrc.c b/drivers/staging/vt6655/tcrc.c index ed6868a..ddc5efd 100644 --- a/drivers/staging/vt6655/tcrc.c +++ b/drivers/staging/vt6655/tcrc.c @@ -41,7 +41,7 @@ /*- Static Variables --*/ -// 32-bit CRC table +/* 32-bit CRC table */ static const unsigned long s_adwCrc32Table[256] = { 0xL, 0x77073096L, 0xEE0E612CL, 0x990951BAL, 0x076DC419L, 0x706AF48FL, 0xE963A535L, 0x9E6495A3L, -- 1.7.9.5 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel