summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-12 13:33:27 +0800
committerJiri Kosina <jkosina@suse.cz>2013-03-18 14:16:01 +0100
commit53140e062bcabef33dddafd09132f5d62de90144 (patch)
tree855baad7fe6ad70a4fffa880d54f34754d195c87
parent3b77d6617a68dbcafc9cc95d80522c3b0c00ad80 (diff)
downloadop-kernel-dev-53140e062bcabef33dddafd09132f5d62de90144.zip
op-kernel-dev-53140e062bcabef33dddafd09132f5d62de90144.tar.gz
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: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/usb/storage/isd200.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c
index ecea478..06a3d22 100644
--- a/drivers/usb/storage/isd200.c
+++ b/drivers/usb/storage/isd200.c
@@ -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) {
OpenPOWER on IntegriCloud