提交 4ee0925d 编写于 作者: A Archana kumari 提交者: Greg Kroah-Hartman

staging: dgnc:Removed unecessary error messages in dgnc_driver.c

Fixed removal of unecessary error messages in staging:dgnc:dgnc_driver.c
Signed-off-by: NArchana kumari <archanakumari959@gmail.com>
Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 35128d29
...@@ -489,7 +489,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id) ...@@ -489,7 +489,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
brd = dgnc_Board[dgnc_NumBoards] = brd = dgnc_Board[dgnc_NumBoards] =
kzalloc(sizeof(*brd), GFP_KERNEL); kzalloc(sizeof(*brd), GFP_KERNEL);
if (!brd) { if (!brd) {
APR(("memory allocation for board structure failed\n"));
return -ENOMEM; return -ENOMEM;
} }
...@@ -498,7 +497,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id) ...@@ -498,7 +497,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
kzalloc(sizeof(u8) * 8192, GFP_KERNEL); kzalloc(sizeof(u8) * 8192, GFP_KERNEL);
if (!brd->msgbuf) { if (!brd->msgbuf) {
kfree(brd); kfree(brd);
APR(("memory allocation for board msgbuf failed\n"));
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册