OSDN Git Service

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)
commitd3e329b3156699bd85d1aa7a5f792cd38d6a5fd3
tree547489ade5442af92b7ae8513bdbe8da1db912aa
parenta7582733ef7fa80d8e8a53717e73cf83b6f2152e
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