Siano - Device presence handler

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux