staging: dgnc: Removed parentheses.
PATCH v3 1/1 staging: dgnc: Removed parentheses.
Removed unnecessary parentheses.Problem found using checkpatch.pl "CHECK: Unnecessary parentheses around brd->vpd[i + 3]"
Signed-off-by Burcin Akalin <[email protected]>
---
Changes since v2:
* edit hash commit
Changes since v1:
* & after not need space
--- drivers/staging/dgnc/dgnc_neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dgnc/dgnc_neo.c +1 -1
@@ -1841,6 +1841,6 @@ static void neo_vpd(struct dgnc_board *brd)/* Search for the serial number */ for (i =0 ; i <NEO_VPD_IMAGEBYTES -3 ; i++)if (brd->vpd[i] =='S' && brd->vpd[i +1 ] =='N' ) -strncpy (brd->serial_num, &(brd->vpd[i +3 ]),9 ); +strncpy (brd->serial_num, &brd->vpd[i +3 ],9 ); } }
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 8 lines · Burcin Akalin
Removed unnecessary parentheses.Problem found using checkpatch.pl "CHECK: Unnecessary parentheses around brd->vpd[i + 3]"
Signed-off-by Burcin Akalin <[email protected]>---
Changes since v2:
* edit hash commit
Quoted 5 lines
Changes since v1:
* & after not need space--- drivers/staging/dgnc/dgnc_neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Doesn't apply to my tree :(