• S
    net/mlx5: Eliminate query xsrq dead code · b2d3907c
    Saeed Mahameed 提交于
    1. This function is not used anywhere in mlx5 driver
    2. It has a memcpy statement that makes no sense and produces build
    warning with gcc8
    
    drivers/net/ethernet/mellanox/mlx5/core/transobj.c: In function 'mlx5_core_query_xsrq':
    drivers/net/ethernet/mellanox/mlx5/core/transobj.c:347:3: error: 'memcpy' source argument is the same as destination [-Werror=restrict]
    
    Fixes: 01949d01 ("net/mlx5_core: Enable XRCs and SRQs when using ISSI > 0")
    Reported-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
    b2d3907c
transobj.h 4.1 KB