[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100601125721.4e815e76@hyperion.delvare>
Date: Tue, 1 Jun 2010 12:57:21 +0200
From: Jean Delvare <khali@...ux-fr.org>
To: Joe Perches <joe@...ches.com>
Cc: linux-kernel@...r.kernel.org,
"Ben Dooks (embedded platforms)" <ben-linux@...ff.org>,
linux-i2c@...r.kernel.org
Subject: Re: [PATCH 06/21] drivers/i2c/i2c-dev.c: Remove unnecessary kmalloc
casts
Hi Joe,
On Mon, 31 May 2010 20:23:08 -0700, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@...ches.com>
> ---
> 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;
>
Applied, thanks.
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists