Skip to content

Commit

Permalink
spi/nuc900: Remove unnecessary memset of struct nuc900_spi
Browse files Browse the repository at this point in the history
The memory allocated using kzalloc by spi_alloc_master so it doesn't
need to be set to 0 again.

Signed-off-by: Tobias Klauser <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
  • Loading branch information
tklauser authored and glikely committed Feb 2, 2012
1 parent bc26618 commit 90bbf4f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-nuc900.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@ static int __devinit nuc900_spi_probe(struct platform_device *pdev)
}

hw = spi_master_get_devdata(master);
memset(hw, 0, sizeof(struct nuc900_spi));

hw->master = spi_master_get(master);
hw->pdata = pdev->dev.platform_data;
hw->dev = &pdev->dev;
Expand Down

0 comments on commit 90bbf4f

Please sign in to comment.