summaryrefslogtreecommitdiff
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorArchana kumari <archanakumari959@gmail.com>2013-10-18 13:52:51 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-19 14:35:05 -0700
commita27582310ce800ad8e73291260a0852e8b603865 (patch)
tree9c67ee513f414106cedf461aa5da69b654ba097c /drivers/staging/dgnc
parent4ee0925da18f84146da698b7843ceabf9053f834 (diff)
staging: dgnc: braces {} are not necessary for single statement in dgnc_driver.c
Fixes "braces {} are not necessary for single statement blocks" warning in dgnc_driver.c Signed-off-by: Archana kumari <archanakumari959@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index f2821884b03d..c204266cb69f 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -488,9 +488,8 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
/* get the board structure and prep it */
brd = dgnc_Board[dgnc_NumBoards] =
kzalloc(sizeof(*brd), GFP_KERNEL);
- if (!brd) {
+ if (!brd)
return -ENOMEM;
- }
/* make a temporary message buffer for the boot messages */
brd->msgbuf = brd->msgbuf_head =