gpu: drm: dead code elimination
authorPan Zhang <zhangpan26@huawei.com>
Wed, 18 Dec 2019 03:50:08 +0000 (11:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:13 +0000 (16:09 -0500)
commitd012ea925d6110f2bd4a9b398f87ef1a76c649c5
tree841ff74142f3c44d007ba3dfcf354e69b100b59f
parent719423f670796bb5d2e2894176033a493f684d8b
gpu: drm: dead code elimination

this set adds support for removal of gpu drm dead code.

patch3 is similar with patch 1:
`num` is a data of u8 type and ATOM_MAX_HW_I2C_READ == 255,

so there is a impossible condition '(num > 255) => (0-255 > 255)'.

Signed-off-by: Pan Zhang <zhangpan26@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_i2c.c