[OPW,kernel,2/3] Staging: dgnc: Fixed sizeof usage accoding to style guide.
diff mbox

Message ID 20131012151048.GA10012@gmail.com
State Rejected
Headers show

Commit Message

Agnieszka Tabaka Oct. 12, 2013, 3:10 p.m. UTC
Signed-off-by: Agnieszka Tabaka <nufcia@gmail.com>
---
 drivers/staging/dgnc/dgnc_driver.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Greg Kroah-Hartman Oct. 14, 2013, 4:07 p.m. UTC | #1
On Sat, Oct 12, 2013 at 05:10:48PM +0200, Agnieszka Tabaka wrote:
> Signed-off-by: Agnieszka Tabaka <nufcia@gmail.com>
> ---
>  drivers/staging/dgnc/dgnc_driver.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

This patch doesn't apply as your previous patch wasn't accepted, sorry.

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index 6fdc632..7a0a396 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -486,7 +486,7 @@  static int dgnc_found_board(struct pci_dev *pdev, int id)
 	unsigned long flags;
 
 	/* get the board structure and prep it */
-	brd = kzalloc(sizeof(struct board_t), GFP_KERNEL);
+	brd = kzalloc(sizeof(*brd), GFP_KERNEL);
 	dgnc_Board[dgnc_NumBoards] = brd;
 	if (!brd) {
 		APR(("memory allocation for board structure failed\n"));
@@ -494,7 +494,7 @@  static int dgnc_found_board(struct pci_dev *pdev, int id)
 	}
 
 	/* make a temporary message buffer for the boot messages */
-	brd->msgbuf = kzalloc(sizeof(char) * 8192, GFP_KERNEL);
+	brd->msgbuf = kzalloc(8192, GFP_KERNEL);
 	brd->msgbuf_head = brd->msgbuf;
 	if (!brd->msgbuf) {
 		kfree(brd);