drivers/gpu/drm/radeon/r100.c:3303]: (style) Redundant condition

David Binderman dcb314 at hotmail.com
Mon Mar 27 10:07:44 UTC 2017


Hello there,

linux-4.11-rc4/drivers/gpu/drm/radeon/r100.c:3303]: (style) Redundant condition: If 'EXPR == 11', the comparison 'EXPR <= 12' is always true.

Source code is

    } else if (rdev->family == CHIP_RV350 ||
           rdev->family <= CHIP_RV380) {

Also in the same file:

[drivers/gpu/drm/radeon/r100.c:2550]: (style) Variable 'tmp' is assigned a value
 that is never used.
[drivers/gpu/drm/radeon/r100.c:2875]: (style) Variable 'tmp' is assigned a value
 that is never used.

Regards

David Binderman


More information about the amd-gfx mailing list