Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: wlan-ng: remove unnecessary parenthesis in prism2fw.c

This patch removes unnecessary parentheses in different statements of
prism2fw.c file in order to to comply with the standard kernel
coding style.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sergio Paracuellos and committed by
Greg Kroah-Hartman
b586fbd3 98c1a778

+4 -4
+4 -4
drivers/staging/wlan-ng/prism2fw.c
··· 611 611 curroff = 0; 612 612 while (curroff < (HFA384x_PDA_LEN_MAX / 2 - 1) && 613 613 le16_to_cpu(pda16[curroff + 1]) != HFA384x_PDR_END_OF_PDA) { 614 - pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&(pda16[curroff]); 614 + pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&pda16[curroff]; 615 615 616 616 if (le16_to_cpu(pda->rec[pda->nrec]->code) == 617 617 HFA384x_PDR_NICID) { ··· 649 649 curroff, pda->nrec); 650 650 return 1; 651 651 } 652 - pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&(pda16[curroff]); 652 + pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&pda16[curroff]; 653 653 (pda->nrec)++; 654 654 return 0; 655 655 } ··· 754 754 memset(dest, 0, s3plug[i].len); 755 755 strncpy(dest, PRISM2_USB_FWFILE, s3plug[i].len - 1); 756 756 } else { /* plug a PDR */ 757 - memcpy(dest, &(pda->rec[j]->data), s3plug[i].len); 757 + memcpy(dest, &pda->rec[j]->data, s3plug[i].len); 758 758 } 759 759 } 760 760 return result; ··· 950 950 return 1; 951 951 } 952 952 953 - tmpinfo = (u16 *)&(s3info[ns3info].info.version); 953 + tmpinfo = (u16 *)&s3info[ns3info].info.version; 954 954 pr_debug(" info="); 955 955 for (i = 0; i < s3info[ns3info].len - 1; i++) { 956 956 tmpinfo[i] = *(ptr16 + 2 + i);