Re: [PATCH] sh: maple: add Maple controller as a joystick device

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

 



On Saturday 20 December 2008 10:26:54 Adrian McMenamin wrote:> +       mdev = to_maple_dev(dev);> +       if (!mdev) {> +               error = EINVAL;> +               goto fail;> +       }> +       > +       mdrv = to_maple_driver(dev->driver);> +       if (!mdrv) {> +               error = EINVAL;> +               goto fail;> +       }
This will never happen - to_maple_* are simple wrappers around container_of and so the result will never be NULL but some small offset from it if dev is NULL. I'm staying on the old version of the patch with small fixups.
-- Dmitryÿôèº{.nÇ+?·?®?­?+%?Ëÿ±éݶ¥?wÿº{.nÇ+?·¥?{±þ)éºßâ?Ø^n?r¡öŠzË?ëh?šè­Ú&£ûàz¿äz¹Þ?ú+?Ê+zf£¢·h??§~?­?Ûiÿÿï?êÿ?êçz_è®æj:+v?šþ)ߣøm


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux