diff options
author | Joe Perches <joe@perches.com> | 2010-08-11 18:20:54 +0200 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2010-08-11 18:20:54 +0200 |
commit | 35a56c5b821c1a5ab904018f322a8e45afd116f0 (patch) | |
tree | 862aa77de21f222a24a952ecefd111ed3a424937 /drivers/i2c/i2c-dev.c | |
parent | 3d30701b58970425e1d45994d6cb82f828924fdd (diff) | |
download | kernel_goldelico_gta04-35a56c5b821c1a5ab904018f322a8e45afd116f0.zip kernel_goldelico_gta04-35a56c5b821c1a5ab904018f322a8e45afd116f0.tar.gz kernel_goldelico_gta04-35a56c5b821c1a5ab904018f322a8e45afd116f0.tar.bz2 |
i2c-dev: Remove unnecessary kmalloc casts
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index e0694e4..b3fcb59 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c @@ -219,9 +219,7 @@ static noinline int i2cdev_ioctl_rdrw(struct i2c_client *client, if (rdwr_arg.nmsgs > I2C_RDRW_IOCTL_MAX_MSGS) return -EINVAL; - rdwr_pa = (struct i2c_msg *) - kmalloc(rdwr_arg.nmsgs * sizeof(struct i2c_msg), - GFP_KERNEL); + rdwr_pa = kmalloc(rdwr_arg.nmsgs * sizeof(struct i2c_msg), GFP_KERNEL); if (!rdwr_pa) return -ENOMEM; |