summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/ttusb-budget
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-12-31 14:58:34 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-06 18:43:34 +0400
commite4b8537c974cf0f95282286e2f9e3e2476258f52 (patch)
tree0bc9c094d1382ed0f760f407c77f6cb552741f5c /drivers/media/dvb/ttusb-budget
parent5c96ebb7cea790c6ca1b8b70fdea531fb194dabb (diff)
downloadlinux-e4b8537c974cf0f95282286e2f9e3e2476258f52.tar.xz
[media] dvb-bt8xx: use goto based exception handling
Repeating the same cleanup code in each error handling path makes life unnecessarily difficult for reviewers, who much check each instance of the same copy+pasted code separately. A "goto" to the end of the function is more maintainable and conveys the intent more clearly. While we're touching this code, also lift some assignments from "if" conditionals for simplicity. No functional change intended. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/ttusb-budget')
0 files changed, 0 insertions, 0 deletions