* [PATCH 06/21] drivers/i2c/i2c-dev.c: Remove unnecessary kmalloc casts [not found] <cover.1275360951.git.joe@perches.com> @ 2010-06-01 3:23 ` Joe Perches 2010-06-01 10:57 ` Jean Delvare 0 siblings, 1 reply; 2+ messages in thread From: Joe Perches @ 2010-06-01 3:23 UTC (permalink / raw) To: linux-kernel Cc: Jean Delvare (PC drivers, core), Ben Dooks (embedded platforms), linux-i2c Signed-off-by: Joe Perches <joe@perches.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; -- 1.7.0.3.311.g6a6955 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 06/21] drivers/i2c/i2c-dev.c: Remove unnecessary kmalloc casts 2010-06-01 3:23 ` [PATCH 06/21] drivers/i2c/i2c-dev.c: Remove unnecessary kmalloc casts Joe Perches @ 2010-06-01 10:57 ` Jean Delvare 0 siblings, 0 replies; 2+ messages in thread From: Jean Delvare @ 2010-06-01 10:57 UTC (permalink / raw) To: Joe Perches; +Cc: linux-kernel, Ben Dooks (embedded platforms), linux-i2c Hi Joe, On Mon, 31 May 2010 20:23:08 -0700, Joe Perches wrote: > Signed-off-by: Joe Perches <joe@perches.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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-01 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1275360951.git.joe@perches.com>
2010-06-01 3:23 ` [PATCH 06/21] drivers/i2c/i2c-dev.c: Remove unnecessary kmalloc casts Joe Perches
2010-06-01 10:57 ` Jean Delvare
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox