Messages in this thread Patch in this message | | | From | cgel.zte@gmail ... | Subject | [PATCH] ethernet:octeontx2:remove unneeded variable | Date | Fri, 10 Dec 2021 02:16:21 +0000 |
| |
From: Minghao Chi <chi.minghao@zte.com.cn>
Return status directly from function called.
Reported-by: Zeal Robot <zealci@zte.com.cm> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> --- drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c index 2ca182a4ce82..05694cd5ed15 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c @@ -815,12 +815,10 @@ int rvu_mbox_handler_cgx_features_get(struct rvu *rvu, u32 rvu_cgx_get_fifolen(struct rvu *rvu) { struct mac_ops *mac_ops; - u32 fifo_len; mac_ops = get_mac_ops(rvu_first_cgx_pdata(rvu)); - fifo_len = mac_ops ? mac_ops->fifo_len : 0; - return fifo_len; + return mac_ops ? mac_ops->fifo_len : 0; } static int rvu_cgx_config_intlbk(struct rvu *rvu, u16 pcifunc, bool en) -- 2.25.1
| |