mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
staging: rtl8712: fix foo* bar (foo*) errors reported by checkpatch
fixes the following errors: drivers/staging/rtl8712/rtl871x_security.c:61: ERROR: "foo * bar" should be "foo *bar" drivers/staging/rtl8712/rtl871x_security.c:291: ERROR: "foo * bar" should be "foo *bar" drivers/staging/rtl8712/rtl871x_security.c:323: ERROR: "foo * bar" should be "foo *bar" drivers/staging/rtl8712/rtl871x_security.c:1371: ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c06df2334c
commit
53176607a4
1 changed files with 4 additions and 4 deletions
|
@ -58,7 +58,7 @@ struct arc4context {
|
||||||
u8 state[256];
|
u8 state[256];
|
||||||
};
|
};
|
||||||
|
|
||||||
static void arcfour_init(struct arc4context *parc4ctx, u8 * key, u32 key_len)
|
static void arcfour_init(struct arc4context *parc4ctx, u8 *key, u32 key_len)
|
||||||
{
|
{
|
||||||
u32 t, u;
|
u32 t, u;
|
||||||
u32 keyindex;
|
u32 keyindex;
|
||||||
|
@ -288,7 +288,7 @@ static void secmicclear(struct mic_data *pmicdata)
|
||||||
pmicdata->M = 0;
|
pmicdata->M = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void r8712_secmicsetkey(struct mic_data *pmicdata, u8 * key)
|
void r8712_secmicsetkey(struct mic_data *pmicdata, u8 *key)
|
||||||
{
|
{
|
||||||
/* Set the key */
|
/* Set the key */
|
||||||
pmicdata->K0 = secmicgetuint32(key);
|
pmicdata->K0 = secmicgetuint32(key);
|
||||||
|
@ -320,7 +320,7 @@ static void secmicappendbyte(struct mic_data *pmicdata, u8 b)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void r8712_secmicappend(struct mic_data *pmicdata, u8 * src, u32 nbytes)
|
void r8712_secmicappend(struct mic_data *pmicdata, u8 *src, u32 nbytes)
|
||||||
{
|
{
|
||||||
/* This is simple */
|
/* This is simple */
|
||||||
while (nbytes > 0) {
|
while (nbytes > 0) {
|
||||||
|
@ -1368,7 +1368,7 @@ u32 r8712_aes_decrypt(struct _adapter *padapter, u8 *precvframe)
|
||||||
precvframe)->u.hdr.attrib;
|
precvframe)->u.hdr.attrib;
|
||||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||||
|
|
||||||
pframe = (unsigned char *)((union recv_frame*)precvframe)->
|
pframe = (unsigned char *)((union recv_frame *)precvframe)->
|
||||||
u.hdr.rx_data;
|
u.hdr.rx_data;
|
||||||
/* 4 start to encrypt each fragment */
|
/* 4 start to encrypt each fragment */
|
||||||
if ((prxattrib->encrypt == _AES_)) {
|
if ((prxattrib->encrypt == _AES_)) {
|
||||||
|
|
Loading…
Reference in a new issue