On 11 December 2012 16:27, Joe Perches <joe@xxxxxxxxxxx> wrote: > On Tue, 2012-12-11 at 15:26 +0000, Steve Glendinning wrote: > []> diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c > [] >> + ret = smsc95xx_read_reg_nopm(dev, RX_FIFO_INF, &val); >> + if (ret < 0) { >> + netdev_warn(dev->net, "Error reading RX_FIFO_INF"); > > Please remember terminating newlines. Oops, I've fixed this now in my tree. > If you are always going to warn bad reads or writes, > it'd be good to change smsc95xx_read_reg_nopm > and write to emit the message. > > It saves ~3% of code, 1K > $ size drivers/net/usb/smsc95xx.o* > text data bss dec hex filename > 27064 2724 6072 35860 8c14 drivers/net/usb/smsc95xx.o.new > 27921 2724 6256 36901 9025 drivers/net/usb/smsc95xx.o.old > > Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> Thanks for this Joe, actually as the register access functions already print a warning with the register number I don't think we need to log this at the calling site at all. I'll rip out all the warnings that don't add any significant new information (i.e. *why* the call may have failed, or what its failure means). -- Steve Glendinning -- 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