2003-09-09 22:29:04

by Stephen Hemminger

[permalink] [raw]
Subject: [PATCH] gscd - get rid of warning.

Compiler warning on 2.6.0-test5 indicates a problem because of missing equal sign.

diff -Nru a/drivers/cdrom/gscd.c b/drivers/cdrom/gscd.c
--- a/drivers/cdrom/gscd.c Tue Sep 9 15:25:50 2003
+++ b/drivers/cdrom/gscd.c Tue Sep 9 15:25:50 2003
@@ -965,7 +965,7 @@

gscd_queue = blk_init_queue(do_gscd_request, &gscd_lock);
if (!gscd_queue) {
- ret -ENOMEM;
+ ret = -ENOMEM;
goto err_out3;
}


2003-09-10 07:11:32

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH] gscd - get rid of warning.

On Tue, Sep 09 2003, Stephen Hemminger wrote:
> Compiler warning on 2.6.0-test5 indicates a problem because of missing equal sign.
>
> diff -Nru a/drivers/cdrom/gscd.c b/drivers/cdrom/gscd.c
> --- a/drivers/cdrom/gscd.c Tue Sep 9 15:25:50 2003
> +++ b/drivers/cdrom/gscd.c Tue Sep 9 15:25:50 2003
> @@ -965,7 +965,7 @@
>
> gscd_queue = blk_init_queue(do_gscd_request, &gscd_lock);
> if (!gscd_queue) {
> - ret -ENOMEM;
> + ret = -ENOMEM;
> goto err_out3;
> }

No discussion, thanks :)

--
Jens Axboe