Re: [PATCH -next] USB: core: remove set but not used variable 'udev'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 28 Sep 2018, Greg Kroah-Hartman wrote:

> On Sat, Sep 22, 2018 at 06:31:26AM +0000, YueHaibing wrote:
> > Fixes gcc '-Wunused-but-set-variable' warning:
> > 
> > drivers/usb/core/driver.c: In function 'usb_driver_claim_interface':
> > drivers/usb/core/driver.c:513:21: warning:
> >  variable 'udev' set but not used [-Wunused-but-set-variable]
> > 
> > Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> > Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> > ---
> >  drivers/usb/core/driver.c | 3 ---
> >  1 file changed, 3 deletions(-)
> 
> This patch breaks the build, which is not ok :(

Are you sure you applied it to the right branch?  It requires commit 
c183813fcee44a24 ("USB: remove LPM management from 
usb_driver_claim_interface()").  Probably the tags should mention this.

Alan Stern




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux