]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: octeon: Remove unneeded variable
authorCristiane Naves <cristianenavescardoso09@gmail.com>
Sat, 26 Oct 2019 22:24:53 +0000 (19:24 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Oct 2019 07:15:43 +0000 (08:15 +0100)
Remove unneeded variable used to store return value. Issue found by
coccicheck.

Signed-off-by: Cristiane Naves <cristianenavescardoso09@gmail.com>
Link: https://lore.kernel.org/r/20191026222453.GA14562@cristiane-Inspiron-5420
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/octeon-stubs.h

index b07f5e24acbc933f582314fe692c15426ca5d0d3..d53bd801f440a7348a6d2d030f8fc88bf4657154 100644 (file)
@@ -1387,9 +1387,7 @@ static inline cvmx_pko_status_t cvmx_pko_send_packet_finish(uint64_t port,
                uint64_t queue, union cvmx_pko_command_word0 pko_command,
                union cvmx_buf_ptr packet, cvmx_pko_lock_t use_locking)
 {
-       cvmx_pko_status_t ret = 0;
-
-       return ret;
+       return 0;
 }
 
 static inline void cvmx_wqe_set_port(struct cvmx_wqe *work, int port)