Commit 53140e06 authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Jiri Kosina

driver: usb: storage: remove cast for kmalloc return value

remove cast for kmalloc return value.
Signed-off-by: default avatarZhang Yanfei <>
Cc: Matthew Dharm <>
Cc: Greg Kroah-Hartman <>
Cc: Andrew Morton <>
Signed-off-by: default avatarJiri Kosina <>
parent 3b77d661
......@@ -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 =
if (!info->id || !info->RegsBuf || !info->srb.sense_buffer) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment