Re: [PATCH 1/2] usb: ehci: use amd_chipset_type to filter for usb subsystem hang bug

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

 



On Thu, Oct 03, 2013 at 10:11:36AM -0400, Alan Stern wrote:
> On Thu, 3 Oct 2013, Huang Rui wrote:
> 
> > +int usb_amd_hang_symptom_quirk(void)
> > +{
> > +	u8 rev;
> > +
> > +	usb_amd_find_chipset_info();
> > +	rev = amd_chipset.sb_type.rev;
> > +	/* SB600 and old version of SB700 have hang symptom bug */
> > +	return (amd_chipset.sb_type.gen == AMD_CHIPSET_SB600 ||
> > +			(amd_chipset.sb_type.gen == AMD_CHIPSET_SB700 &&
> > +			 rev >= 0x3a && rev <= 0x3b)) ? 1 : 0;
> 
> You don't need the "? 1 : 0" part.  When you remove it, change the 
> function's return type to bool.  The same comment applies to the other 
> patch in this series.
> 

Thank you, will update.

Thanks,
Rui

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux