]> git.baikalelectronics.ru Git - kernel.git/commit
usb: misc: ftdi-elan: fix duplicated code for different branches
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 13 Aug 2017 01:12:32 +0000 (20:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 09:17:58 +0000 (11:17 +0200)
commitf36d76b0153f4c8862d5e8d905b6eb6a3050a0b7
treeeda271803ef21635a71e39dbb7afc2daaf30e35c
parentb995b8c150cc7756cdb2bc1288fbd5fb69e35dad
usb: misc: ftdi-elan: 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.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/ftdi-elan.c