From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Adrian McMenamin <adrian@newgolddream.dyndns.info>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-sh <linux-sh@vger.kernel.org>,
linux-input <linux-input@vger.kernel.org>,
Paul Mundt <lethal@linux-sh.org>, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] sh: maple: add Maple controller as a joystick device
Date: Sat, 20 Dec 2008 20:28:20 +0000 [thread overview]
Message-ID: <200812201228.20767.dmitry.torokhov@gmail.com> (raw)
In-Reply-To: <1229797614.6502.20.camel@localhost.localdomain>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 713 bytes --]
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Ç+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þÈÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á
next prev parent reply other threads:[~2008-12-20 20:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-20 18:26 [PATCH] sh: maple: add Maple controller as a joystick device Adrian McMenamin
2008-12-20 20:28 ` Dmitry Torokhov [this message]
2008-12-24 16:13 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812201228.20767.dmitry.torokhov@gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=adrian@newgolddream.dyndns.info \
--cc=akpm@osdl.org \
--cc=lethal@linux-sh.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).