diff options
author | Archana kumari <archanakumari959@gmail.com> | 2013-10-18 13:52:51 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-19 14:35:05 -0700 |
commit | a27582310ce800ad8e73291260a0852e8b603865 (patch) | |
tree | 9c67ee513f414106cedf461aa5da69b654ba097c /drivers | |
parent | 4ee0925da18f84146da698b7843ceabf9053f834 (diff) | |
download | linux-a27582310ce800ad8e73291260a0852e8b603865.tar.gz linux-a27582310ce800ad8e73291260a0852e8b603865.tar.bz2 linux-a27582310ce800ad8e73291260a0852e8b603865.zip |
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')
-rw-r--r-- | drivers/staging/dgnc/dgnc_driver.c | 3 |
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 = |