lkml.org 
[lkml]   [2014]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: esp_scsi: make number of tags configurable
On Wed, Dec 10, 2014 at 11:16:47AM +0100, Geert Uytterhoeven wrote:
> > --- a/drivers/scsi/esp_scsi.c
> > +++ b/drivers/scsi/esp_scsi.c
> > @@ -2317,6 +2317,10 @@ int scsi_esp_register(struct esp *esp, struct device *dev)
> > static int instance;
> > int err;
> >
> > + if (!esp->num_tags)
> > + esp->num_tags = ESP_DEFAULT_TAGS;
> > + else if (esp->num_tags >= ESP_MAX_TAG)
>
> drivers/scsi/esp_scsi.c: In function ???scsi_esp_register???:
> drivers/scsi/esp_scsi.c:2399: warning: comparison is always false due
> to limited range of data type
>
> ESP_MAX_TAG is 256, num_tags is u8.

Can you send me a patch to just remove that conditional?



\
 
 \ /
  Last update: 2014-12-30 13:21    [W:0.036 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site