[dpdk-dev,18/21] net/qede/base: semantic fix
Checks
Commit Message
No need to return - base on return at end of function.
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
---
drivers/net/qede/base/ecore_vf.c | 1 -
1 file changed, 1 deletion(-)
Comments
On 2/27/2017 7:52 AM, Rasesh Mody wrote:
> No need to return - base on return at end of function.
Does it make sense to update patch title to remove "fix" to prevent
misunderstanding, perhaps to something like: "refactor return path" or
"update semantic"
>
> Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
<...>
@@ -126,7 +126,6 @@ static void ecore_vf_pf_req_end(struct ecore_hwfn *p_hwfn,
"VF <-- PF Timeout [Type %d]\n",
p_req->first_tlv.tl.type);
rc = ECORE_TIMEOUT;
- return rc;
} else {
DP_VERBOSE(p_hwfn, ECORE_MSG_IOV,
"PF response: %d [Type %d]\n",