Skip to contentSkip to conversation

staging: dgnc: Removed parentheses.

PATCH In review Burcin Akalin 2 participants 2 messages Oct 24, 2015 – Oct 27, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 staging: dgnc: Removed parentheses.

Removed unnecessary parentheses.Problem found using checkpatch.pl "CHECK: Unnecessary parentheses around brd->vpd[i + 3]"

---
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
index 900e3ae..c3beff6 100644
@@ -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
maintainer
#1 lore raw
Quoted 8 lines · Burcin Akalin

Removed unnecessary parentheses.Problem found using checkpatch.pl "CHECK: Unnecessary parentheses around brd->vpd[i + 3]"

---
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 :(