2004-01-17 13:47:02

by in

[permalink] [raw]
Subject: [PATCH] <drivers/usb/storage/dpcm.c>, kernel <2.6.1>

[PATCH] <drivers/usb/storage/dpcm.c>, kernel <2.6.1>

It just takes out the unused int! just takes of the warning when compiling!

--- a/drivers/usb/storage/dpcm.c 2003-12-18 02:59:15.000000000 +0000
+++ linux/drivers/usb/storage/dpcm.c 2004-01-17 13:22:49.000000000 +0000
@@ -43,8 +43,6 @@
*/
int dpcm_transport(Scsi_Cmnd *srb, struct us_data *us)
{
- int ret;
-
if(srb == NULL)
return USB_STOR_TRANSPORT_ERROR;



2004-01-20 22:44:06

by Adrian Bunk

[permalink] [raw]
Subject: Re: [PATCH] <drivers/usb/storage/dpcm.c>, kernel <2.6.1>

On Sat, Jan 17, 2004 at 01:42:56PM +0000, in wrote:
> [PATCH] <drivers/usb/storage/dpcm.c>, kernel <2.6.1>
>
> It just takes out the unused int! just takes of the warning when compiling!


It isn't unused #ifdef CONFIG_USB_STORAGE_SDDR09 .



> --- a/drivers/usb/storage/dpcm.c 2003-12-18 02:59:15.000000000 +0000
> +++ linux/drivers/usb/storage/dpcm.c 2004-01-17 13:22:49.000000000 +0000
> @@ -43,8 +43,6 @@
> */
> int dpcm_transport(Scsi_Cmnd *srb, struct us_data *us)
> {
> - int ret;
> -
> if(srb == NULL)
> return USB_STOR_TRANSPORT_ERROR;

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed