usb-serial: Move USB_TOKEN_IN into a helper function
commit2bcf4e9ff9a3f29b21e6d487d89264d191df5822
authorJason Andryuk <jandryuk@gmail.com>
Mon, 16 Mar 2020 17:46:07 +0000 (16 13:46 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Mar 2020 08:05:33 +0000 (17 09:05 +0100)
tree02510b003ead66ec17637d662e664f04592c1f75
parent61c265f0660ee476985808c8aa7915617c44fd53
usb-serial: Move USB_TOKEN_IN into a helper function

We'll be adding a loop, so move the code into a helper function.  breaks
are replaced with returns.  While making this change, add braces to
single line if statements to comply with coding style and keep
checkpatch happy.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Message-id: 20200316174610.115820-2-jandryuk@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-serial.c