summaryrefslogtreecommitdiff
path: root/drivers/video/videomode.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-03-28 16:34:27 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-03-28 16:34:27 +0200
commitdaa0524bc0a07048e33fdb61cae30467ef4ceff7 (patch)
treecf6817acd27a627678111944c8d96cc87c2c97b7 /drivers/video/videomode.c
parent3c097b069bb82391fcad73373eccbca8400636e7 (diff)
video: smscufx: Less checks in ufx_usb_probe() after error detection
Up to four checks could be repeated by the ufx_usb_probe() function during error handling even if the relevant properties can be determined for the involved variables before by source code analysis. * Return directly after a call of the function "kzalloc" failed at the beginning. * Adjust jump targets so that extra checks can be omitted at the end. * Delete initialisations for the variables "info" and "retval" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Cc: Steve Glendinning <steve.glendinning@shawell.net> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/videomode.c')
0 files changed, 0 insertions, 0 deletions