Thread (3 messages) 3 messages, 3 authors, 2008-12-24

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

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2008-12-20 20:28:54
Also in: linux-sh, lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help