Skip to content

Commit

Permalink
USB: ohci-pnx4008: Remove unnecessary cast of return value of kzalloc
Browse files Browse the repository at this point in the history
Remove unnecessary cast of return value of kzalloc() in
usb/host/ohci-pnx4008.c

Signed-off-by: Suresh Jayaraman <sjayaraman@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Suresh Jayaraman authored and Greg Kroah-Hartman committed Jul 12, 2007
1 parent 6c59649 commit 13f9966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ohci-pnx4008.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static int isp1301_attach(struct i2c_adapter *adap, int addr, int kind)
{
struct i2c_client *c;

c = (struct i2c_client *)kzalloc(sizeof(*c), GFP_KERNEL);
c = kzalloc(sizeof(*c), GFP_KERNEL);

if (!c)
return -ENOMEM;
Expand Down

0 comments on commit 13f9966

Please sign in to comment.