]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: sis: fix duplicated code for different branches
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 4 Sep 2017 14:00:50 +0000 (16:00 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 4 Sep 2017 14:00:50 +0000 (16:00 +0200)
commitc1a5195f2b71995177a8da56ebc8b5673da23013
tree547489ade5442af92b7ae8513bdbe8da1db912aa
parentb00c3b104eb3136ec997a5e148a681aa576acd3a
video: fbdev: sis: fix duplicated code for different branches

Refactor code in order to avoid identical code for different branches.

This issue was detected with the help of Coccinelle.

Addresses-Coverity-ID: 1226761
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/sis/init301.c