]> git.itanic.dy.fi Git - linux-stable/commit
Input: xpad - simplify error condition in init_output
authorPavel Rojtberg <rojtberg@gmail.com>
Fri, 27 May 2016 23:26:33 +0000 (16:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:02 +0000 (09:48 +0100)
commit7fe76c3e5ebc1f338142776da0073dde9201db33
tree42238e7edca6cbc1e7f69bcf2ec096035c979c22
parent44787a7951a83d8a47ec0b49b87a6dbc5e2466c7
Input: xpad - simplify error condition in init_output

[ Upstream commit a8c34e27fb1ece928ec728bfe596aa6ca0b1928a ]

Replace first goto with simple returns as we really are just returning
one error code.

Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c