From: Miller, Mike (OS Dev) on


> -----Original Message-----
> From: Joe Perches [mailto:joe(a)perches.com]
> Sent: Monday, May 31, 2010 10:23 PM
> To: linux-kernel(a)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(a)perches.com>

Acked-by: Mike Miller <mike.miller(a)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
>
> --
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/