Re: [PATCH 01/23] I2C: TWL4030: checkpatch.pl fixes for twl4030-core.c

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

 



On Friday 11 April 2008, Gadiyar, Anand wrote:
> >  static int __init twl4030_init(void)
> >  {
> > -     int res;
> > -
> > -     if ((res = i2c_add_driver(&twl4030_driver))) {
> > -             printk(KERN_ERR "TWL4030: Driver registration failed\n");
> > -             return res;
> > -     }
> > -
> > -     pr_info(KERN_INFO "TWL4030: Driver registration complete.\n");
> > -
> > -     return 0;
> > +     return i2c_add_driver(&twl4030_driver);
> >  }
> 
> You're losing the failure print here. Not sure if it matters, but
> I'm pointing it out anyway. 

Doesn't matter; the standard policy is to have module init
just add the drivers and let the subsystems handle any
(unlikely) warning messages.

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

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux