Skip to contentSkip to conversation

Staging: dgnc: Fix warning of code style

PATCH Julia Lawall 1 participant 1 message Feb 16, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 2 lines · Vatika Harlalka

This patch fixes checkpatch.pl WARNING:
Line longer than 80 chars.

In this case, maybe it is ok, because the issue is very simple, but in general try to make subject lines and commit logs that describe the problema dn what you did to fix it, rather than just saying fix X. For example, you could say "Shorten long line to improve readability".

Quoted 10 lines
---
 drivers/staging/dgnc/dgnc_driver.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/dgnc/dgnc_driver.c +0 -0
index f177d3a..ace2af6 100644

drivers/staging/dgnc/dgnc_driver.c static int dgnc_found_board(struct pci_dev *pdev, int id) · line 611

Quoted 7 lines
drivers/staging/dgnc/dgnc_driver.c +3 -1
@@ -606,7 +606,9 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
 	dgnc_create_ports_sysfiles(brd);
 
 	/* init our poll helper tasklet */
-	tasklet_init(&brd->helper_tasklet, brd->bd_ops->tasklet, (unsigned long) brd);
+	tasklet_init(&brd->helper_tasklet,
+		     brd->bd_ops->tasklet,
+		     (unsigned long) brd);

Actually, if you look at other calls to tasklet_init (and other functions) in the kernel, it seems to be more common to put as much on a line as possible.

Everything else about the format looks good.

julia

Quoted 10 lines
drivers/staging/dgnc/dgnc_driver.c +0 -1
 	spin_lock_irqsave(&dgnc_global_lock, flags);
 	brd->msgbuf = NULL;
--

1.9.1

--
You received this message because you are subscribed to the Google Groups "opw-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.