Re: [PATCH 5/5]scsi:hosts.c Fix warning: variable 'rval' set butnot used

From: Matthew Wilcox
Date: Wed Jun 16 2010 - 07:06:10 EST


On Tue, Jun 15, 2010 at 10:33:54PM -0700, Justin P. Mattock wrote:
> The below patch fixes a warning message generated by gcc 4.6.0
> CC drivers/scsi/hosts.o
> drivers/scsi/hosts.c: In function 'scsi_host_alloc':
> drivers/scsi/hosts.c:328:6: warning: variable 'rval' set but not used
>
> Signed-off-by: Justin P. Mattock <justinmattock@xxxxxxxxx>

Reviewed-by: Matthew Wilcox <willy@xxxxxxxxxxxxxxx>

--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/