flow: Correct type of flowside_at_sidx()
Due to a copy-pasta error, this returns 'PIF_NONE' instead of NULL on the failure case. PIF_NONE expands to 0, which turns into NULL, but it's still confusing, so fix it. This removes a clang warning. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
30b4f88167
commit
f6b546c6e4
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ static inline const struct flowside *flowside_at_sidx(flow_sidx_t sidx)
|
|||
const union flow *flow = flow_at_sidx(sidx);
|
||||
|
||||
if (!flow)
|
||||
return PIF_NONE;
|
||||
return NULL;
|
||||
|
||||
return &flow->f.side[sidx.sidei];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue