lkml.org 
[lkml]   [2010]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH 04/21] drivers/block/cciss_scsi.c: Remove unnecessary kmalloc casts


> -----Original Message-----
> From: Joe Perches [mailto:joe@perches.com]
> Sent: Monday, May 31, 2010 10:23 PM
> To: linux-kernel@vger.kernel.org
> Cc: Miller, Mike (OS Dev); ISS StorageDev
> Subject: [PATCH 04/21] drivers/block/cciss_scsi.c: Remove
> unnecessary kmalloc casts
>
> Signed-off-by: Joe Perches <joe@perches.com>

Acked-by: Mike Miller <mike.miller@hp.com>

> ---
> drivers/block/cciss_scsi.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/block/cciss_scsi.c
> b/drivers/block/cciss_scsi.c index e1d0e2c..ffd8470 100644
> --- a/drivers/block/cciss_scsi.c
> +++ b/drivers/block/cciss_scsi.c
> @@ -702,8 +702,7 @@ cciss_scsi_setup(int cntl_num)
> struct cciss_scsi_adapter_data_t * shba;
>
> ccissscsi[cntl_num].ndevices = 0;
> - shba = (struct cciss_scsi_adapter_data_t *)
> - kmalloc(sizeof(*shba), GFP_KERNEL);
> + shba = kmalloc(sizeof(*shba), GFP_KERNEL);
> if (shba == NULL)
> return;
> shba->scsi_host = NULL;
> --
> 1.7.0.3.311.g6a6955
>
>

\
 
 \ /
  Last update: 2010-06-01 17:37    [from the cache]
©2003-2011 Jasper Spaans