staging: vt6655: extract index manupulation out of function call
authorMatej Dujava <mdujava@kocurkovo.cz>
Sun, 3 May 2020 13:29:12 +0000 (15:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 10:31:19 +0000 (12:31 +0200)
commite3b8577aa167ca5612b7723b6949dc888921ac8d
tree8e79f1f53235c455ca2bf51b9a052c292521cba6
parentae25983134c78c51279ebe160f67fcf5e5ef58b8
staging: vt6655: extract index manupulation out of function call

This patch will remove if/else by selecting proper argument before
function call, also index is updated before function call.

Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz>
Link: https://lore.kernel.org/r/1588512552-12297-6-git-send-email-mdujava@kocurkovo.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/rxtx.c