summaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-12-31 07:58:34 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-06 12:43:34 -0200
commite4b8537c974cf0f95282286e2f9e3e2476258f52 (patch)
tree0bc9c094d1382ed0f760f407c77f6cb552741f5c /lib/string_helpers.c
parent5c96ebb7cea790c6ca1b8b70fdea531fb194dabb (diff)
[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 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions