lkml.org 
[lkml]   [2004]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2.6.2-rc1-mm2] drivers/usb/storage/dpcm.c
Date
From

Fix warning for unused var "ret".

--- drivers/usb/storage/dpcm.c.orig 2004-01-24 00:05:42.092064312 -0800
+++ drivers/usb/storage/dpcm.c 2004-01-24 00:07:06.262268496 -0800
@@ -56,7 +56,8 @@
/*
* LUN 0 corresponds to the CompactFlash card reader.
*/
- return usb_stor_CB_transport(srb, us);
+ ret = usb_stor_CB_transport(srb, us);
+ break;

#ifdef CONFIG_USB_STORAGE_SDDR09
case 1:
@@ -72,11 +73,13 @@
ret = sddr09_transport(srb, us);
srb->device->lun = 1; us->srb->device->lun = 1;

- return ret;
+ break;
#endif

default:
US_DEBUGP("dpcm_transport: Invalid LUN %d\n", srb->device->lun);
- return USB_STOR_TRANSPORT_ERROR;
+ ret = USB_STOR_TRANSPORT_ERROR;
+ break;
}
+ return ret;
}

--
Bryan Whitehead
driver@megahappy.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.020 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site