* [PATCH v3] staging: dgnc: Removed parentheses.
@ 2015-10-24 20:43 Burcin Akalin
2015-10-27 5:31 ` [Outreachy kernel] " Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Burcin Akalin @ 2015-10-24 20:43 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Burcin Akalin
Removed unnecessary parentheses.Problem found using checkpatch.pl
"CHECK: Unnecessary parentheses around brd->vpd[i + 3]"
Signed-off-by: Burcin Akalin <brcnakalin@gmail.com>
---
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(-)
diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c
index 900e3ae..c3beff6 100644
--- a/drivers/staging/dgnc/dgnc_neo.c
+++ b/drivers/staging/dgnc/dgnc_neo.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Outreachy kernel] [PATCH v3] staging: dgnc: Removed parentheses.
2015-10-24 20:43 [PATCH v3] staging: dgnc: Removed parentheses Burcin Akalin
@ 2015-10-27 5:31 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2015-10-27 5:31 UTC (permalink / raw)
To: Burcin Akalin; +Cc: outreachy-kernel
On Sat, Oct 24, 2015 at 11:43:06PM +0300, Burcin Akalin wrote:
> Removed unnecessary parentheses.Problem found using checkpatch.pl
> "CHECK: Unnecessary parentheses around brd->vpd[i + 3]"
>
> Signed-off-by: Burcin Akalin <brcnakalin@gmail.com>
> ---
> 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(-)
Doesn't apply to my tree :(
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-27 5:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-24 20:43 [PATCH v3] staging: dgnc: Removed parentheses Burcin Akalin
2015-10-27 5:31 ` [Outreachy kernel] " Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.