linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Siano - Device presence handler
@ 2013-09-15  2:28 Roberto Alcântara
  0 siblings, 0 replies; only message in thread
From: Roberto Alcântara @ 2013-09-15  2:28 UTC (permalink / raw)
  To: linux-media

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-15  2:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15  2:28 Siano - Device presence handler Roberto Alcântara

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).