• Saeed Mahameed's avatar
    net/mlx5: Eliminate query xsrq dead code · b2d3907c
    Saeed Mahameed authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    b2d3907c
transobj.h 4.06 KB