From: Archana kumari Date: Fri, 18 Oct 2013 08:22:51 +0000 (+0530) Subject: staging: dgnc: braces {} are not necessary for single statement in dgnc_driver.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a27582310ce800ad8e73291260a0852e8b603865;p=linux-beck.git 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 Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- 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 =