Commit a2758231 authored by Archana kumari's avatar Archana kumari Committed by Greg Kroah-Hartman

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: default avatarArchana kumari <archanakumari959@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4ee0925d
...@@ -488,9 +488,8 @@ static int dgnc_found_board(struct pci_dev *pdev, int id) ...@@ -488,9 +488,8 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
/* get the board structure and prep it */ /* get the board structure and prep it */
brd = dgnc_Board[dgnc_NumBoards] = brd = dgnc_Board[dgnc_NumBoards] =
kzalloc(sizeof(*brd), GFP_KERNEL); kzalloc(sizeof(*brd), GFP_KERNEL);
if (!brd) { if (!brd)
return -ENOMEM; return -ENOMEM;
}
/* make a temporary message buffer for the boot messages */ /* make a temporary message buffer for the boot messages */
brd->msgbuf = brd->msgbuf_head = brd->msgbuf = brd->msgbuf_head =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment