From: Christoph Hellwig Subject: Re: esp_scsi: make number of tags configurable Date: Tue, 30 Dec 2014 04:14:28 -0800 Message-ID: <20141230121428.GE32187@infradead.org> References: <20141209053657.75D6A66095A@gitolite.kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Geert Uytterhoeven Cc: Hannes Reinecke , Christoph Hellwig , Linux Kernel Mailing List , scsi List-Id: linux-scsi@vger.kernel.org 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?