summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/lnbp21.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-10 01:49:53 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:55:49 -0300
commitbe44eb283b97c29b06a125cb5527b299d84315f4 (patch)
tree73d92b59deafc66aca72d0208db0ab24baafa306 /drivers/media/dvb/frontends/lnbp21.h
parentf1fe1b75d64046b693075045fe9fc5cafed9c981 (diff)
[media] drxk: Proper handle/propagate the error codes
This driver is very big and complex. An error happening in the middle of any initialization may cause the frontend to not work. So, it needs to properly propagate error codes internally and to userspace. Also, printing the error codes at the places it happened helps to discover were's a bug at the code. Before this change, a do { } while (0) loop and lots of breaks inside were used to propagate errors. While this works, if there are loops inside other loops, it could be easy to forget to add another break, causing the error to not abort the function. Also, as not all functions were reporting errors, it is hard to discover why something failed. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/lnbp21.h')
0 files changed, 0 insertions, 0 deletions