Skip to content

Commit

Permalink
net: capture: Fix the return value of net_capture_is_enabled()
Browse files Browse the repository at this point in the history
The net_capture_is_enabled() function returns boolean value
so fix the function prototype.

Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar authored and galak committed May 28, 2021
1 parent 3033b8e commit b9253b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/capture.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static inline bool net_capture_is_enabled(const struct device *dev)
#else
ARG_UNUSED(dev);

return -ENOTSUP;
return false;
#endif
}

Expand Down

0 comments on commit b9253b5

Please sign in to comment.