net/ena: fix return of hash control flushing
In function ena_com_set_hash_ctrl(), the return value is assigned to "ret" variable, but it is not returned. Fix it by adding the return. Fixes: 99ecfbf845b3 ("ena: import communication layer") Cc: stable@dpdk.org Signed-off-by: Yong Wang <wang.yong19@zte.com.cn> Acked-by: Jan Medala <jan@semihalf.com>
This commit is contained in:
parent
70153557a9
commit
1207f3f722
@ -2278,7 +2278,7 @@ int ena_com_set_hash_ctrl(struct ena_com_dev *ena_dev)
|
|||||||
sizeof(resp));
|
sizeof(resp));
|
||||||
if (unlikely(ret)) {
|
if (unlikely(ret)) {
|
||||||
ena_trc_err("Failed to set hash input. error: %d\n", ret);
|
ena_trc_err("Failed to set hash input. error: %d\n", ret);
|
||||||
ret = ENA_COM_INVAL;
|
return ENA_COM_INVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user