Bug 4667 - ./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c: WARNING: NULL check before dev_{put, hold} functions is not needed.
Summary: ./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c: WARNING: NULL ch...
Status: NEW
Alias: None
Product: Upstream
Classification: Unclassified
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: abaci-robot
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-31 08:51 UTC by abaci-robot
Modified: 2023-04-04 15:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abaci-robot alibaba_cloud_group 2023-03-31 08:51:58 UTC
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:734:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:769:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.

In the following kernel version:

name: linux-next
url: http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git
branch: next-20230330
commit: a6d9e3034536ba4b68ac34490c02267e6eec9c05
Comment 1 abaci-robot alibaba_cloud_group 2023-04-04 15:14:14 UTC
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:35:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:72:2-10: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:80:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:35:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:734:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:769:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c:1450:2-10: WARNING: NULL check before dev_{put, hold} functions is not needed.

In the following kernel version:

name: linux-next
url: http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git
branch: next-20230331
commit: 4b0f4525dc4fe8af17b3daefe585f0c2eb0fe0a5