OSDN Git Service

usb/hcd-ehci: Remove redundant statements
authorChen Qun <kuhn.chenqun@huawei.com>
Wed, 26 Feb 2020 08:46:46 +0000 (16:46 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Mar 2020 10:12:55 +0000 (11:12 +0100)
commite13a22db0d47012e19ad02c9dafacbe25f94e1b4
tree33391fcd7daab23cacdf2bdbeebb01eb332e86af
parent5843b6b35250139d91220ac3b75d467703e345b3
usb/hcd-ehci: Remove redundant statements

The "again" assignment is meaningless before g_assert_not_reached.
In addition, the break statements no longer needs to be after
g_assert_not_reached.

Clang static code analyzer show warning:
hw/usb/hcd-ehci.c:2108:13: warning: Value stored to 'again' is never read
            again = -1;
            ^       ~~

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200226084647.20636-13-kuhn.chenqun@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci.c