Re: [PATCH] scsi/osst.c: remove unncessary casting of kmalloc.

From: Stefan Richter
Date: Sat Jan 16 2010 - 10:37:31 EST


Stefan Richter wrote:
> Thiago Farina wrote:
>> - os_scsi_tapes =
>> - (struct osst_tape **)kmalloc(osst_max_dev * sizeof(struct osst_tape *),
>> - GFP_ATOMIC);
>> + os_scsi_tapes = kmalloc(osst_max_dev * sizeof(struct osst_tape *),
>> + GFP_ATOMIC);

> Since you update the style of this kmalloc usage, you could at the same
> time change the sizeof expression to sizeof(* os_scsi_tapes).

PS: osst_max_dev * sizeof(* os_scsi_tapes) of course, if it wasn't obvious.
--
Stefan Richter
-=====-==-=- ---= =----
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/