From: "Roberto Alcântara" <roberto@eletronica.org>
To: linux-media@vger.kernel.org
Subject: Siano - Device presence handler
Date: Sat, 14 Sep 2013 23:28:28 -0300 [thread overview]
Message-ID: <CAEt6MXmptWRCJpAocNQMYH47N35bNP3nki5UsZGwSQb=cdUdNw@mail.gmail.com> (raw)
Guys,
Looking Siano driver files I can find lot of "container_of" macro as in
smdvb.main smsdvb_read_signal_strength :
client = container_of(fe, struct smsdvb_client_t, frontend);
But I can't find any error checking before client use.
Something like
if (!client) {
return NODEV;
}
before client access should not be useful to avoid error condition ?
Thank you,
- Roberto
reply other threads:[~2013-09-15 2:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAEt6MXmptWRCJpAocNQMYH47N35bNP3nki5UsZGwSQb=cdUdNw@mail.gmail.com' \
--to=roberto@eletronica.org \
--cc=linux-media@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).