driver: usb: storage: remove cast for kmalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:33:27 +0000 (13:33 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Mar 2013 13:16:01 +0000 (14:16 +0100)
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: Jiri Kosina <jkosina@suse.cz>
drivers/usb/storage/isd200.c

index ecea4787736463ccda4d1a498749eed74c2c9136..06a3d22db685da2913b64070c397227840bf9ff8 100644 (file)
@@ -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) {