]> Git Repo - linux.git/commitdiff
staging: octeon-hcd: remove unnecessary unlikely()
authorIgor Stoppa <[email protected]>
Fri, 7 Sep 2018 17:08:20 +0000 (20:08 +0300)
committerGreg Kroah-Hartman <[email protected]>
Fri, 14 Sep 2018 13:21:06 +0000 (15:21 +0200)
WARN_ON() already contains an unlikely(), so it's not necessary to
wrap it into another.

Signed-off-by: Igor Stoppa <[email protected]>
Cc: Aaro Koskinen <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/octeon-usb/octeon-hcd.c

index f188e19c6fc1d46c74ebc6d1eab74e777f549f52..9c766f5b812fc03f14056fed3c2e4714904f2625 100644 (file)
@@ -2770,7 +2770,7 @@ static int cvmx_usb_poll_channel(struct octeon_hcd *usb, int channel)
            (pipe->transfer_dir == CVMX_USB_DIRECTION_OUT))
                pipe->flags |= CVMX_USB_PIPE_FLAGS_NEED_PING;
 
-       if (unlikely(WARN_ON_ONCE(bytes_this_transfer < 0))) {
+       if (WARN_ON_ONCE(bytes_this_transfer < 0)) {
                /*
                 * In some rare cases the DMA engine seems to get stuck and
                 * keeps substracting same byte count over and over again. In
This page took 0.061937 seconds and 4 git commands to generate.