mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
driver: usb: storage: remove cast for kmalloc return value
remove cast for kmalloc return value. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: linux-usb@vger.kernel.org Cc: usb-storage@lists.one-eyed-alien.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8244ac043c
commit
5b2750d5b5
@ -1457,8 +1457,7 @@ static int isd200_init_info(struct us_data *us)
|
||||
retStatus = ISD200_ERROR;
|
||||
else {
|
||||
info->id = kzalloc(ATA_ID_WORDS * 2, GFP_KERNEL);
|
||||
info->RegsBuf = (unsigned char *)
|
||||
kmalloc(sizeof(info->ATARegs), GFP_KERNEL);
|
||||
info->RegsBuf = kmalloc(sizeof(info->ATARegs), GFP_KERNEL);
|
||||
info->srb.sense_buffer =
|
||||
kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL);
|
||||
if (!info->id || !info->RegsBuf || !info->srb.sense_buffer) {
|
||||
|
Loading…
Reference in New Issue
Block a user