Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35a56c5b authored by Joe Perches's avatar Joe Perches Committed by Jean Delvare
Browse files

i2c-dev: Remove unnecessary kmalloc casts



Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 3d30701b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;