[PATCH 2/3] net/hns3: fix unrelease VLAN resource when init fail
Stephen Hemminger
stephen at networkplumber.org
Wed Aug 13 16:51:38 CEST 2025
On Wed, 13 Aug 2025 15:33:16 +0800
Dengdui Huang <huangdengdui at huawei.com> wrote:
> +static void
> +hns3_uninit_hardware(struct hns3_hw *hw)
> +{
> + struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw);
> +
> + (void)hns3_uninit_umv_space(hw);
Overall, the patch looks good. But why the (void) cast here.
The compiler allows ignoring return value unless the must check attribute is set.
More information about the dev
mailing list