staging: dgnc: braces {} are not necessary for single statement in dgnc_driver.c
authorArchana kumari <archanakumari959@gmail.com>
Fri, 18 Oct 2013 08:22:51 +0000 (13:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2013 21:35:05 +0000 (14:35 -0700)
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>
drivers/staging/dgnc/dgnc_driver.c

index f2821884b03d82b074fd31c7a1e7da3ddd7b835f..c204266cb69fc7ab8a1ec3c2284878bfdaee0232 100644 (file)
@@ -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 =