OSDN Git Service

tty: synclink: Reuse an existing error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 17 Sep 2017 19:10:14 +0000 (21:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 16:31:48 +0000 (18:31 +0200)
commit556c27806071d61e2b2e6da7c0a77b1efa4cd832
tree7341bb35a59c4911b71d00dc668888515ace97d7
parentf0a8d84fa1140a1c10bfcf0fb73664a85551512e
tty: synclink: Reuse an existing error handling path

In order to avoid code duplication and to be more consistent with the
other error handling paths in this function, we should 'goto errout'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/synclink.c