Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ upstream commit 60fe5c3cfc3c28952448d2163c4eb1d22d86ccac ] aarch64 gcc 12.2.0 build complain with below warning[1]. Move the new_link initialization upwards to fix the warning. [1] drivers/net/hns3/hns3_ethdev.c: In function ‘hns3_dev_link_update’: drivers/net/hns3/hns3_ethdev.c:2249:1: warning: ‘new_link’ may be used uninitialized [-Wmaybe-uninitialized] Fixes: 6430855 ("net/hns3: fix link status when port is stopped") Signed-off-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Dongdong Liu <liudongdong3@huawei.com>
- Loading branch information