staging: dgnc: Removed parentheses.
PATCH v2 1/1 staging: dgnc: Removed parentheses.
Remove a blank space.Problem found using checkpatch.pl "CHECK: Unnecessary parentheses around brd->vpd[i + 3]"
---
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
Quoted 4 lines · Burcin Akalin
Remove a blank space.Problem found using checkpatch.pl "CHECK: Unnecessary parentheses around brd->vpd[i + 3]"
Signed-off-by Burcin Akalin <[email protected]>
Please base your patch on the original tree, not on previous patch.
Most likely now, you have two patches for this change. You can squash them:
git rebase -i HEAD~3
Instead of:
* pick THIS_HASH_COMMIT
use
* fixup THIS_HASH_COMMIT
Quoted 28 lines
---
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
-2@@ -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 ); } } --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1445679369-3902-1-git-send-email-brcnakalin%40gmail.com.
For more options, visit https://groups.google.com/d/optout.