linux-4.2-rc1/drivers/gpu/drm/radeon/cik.c:1912: dead code block ?

David Binderman dcb314 at hotmail.com
Tue Jul 7 03:56:09 PDT 2015


Hello there,

[linux-4.2-rc1/drivers/gpu/drm/radeon/cik.c:1912] -> [linux-4.2-rc1/drivers/gpu/drm/radeon/cik.c:1913]: (warning) Opposite conditions in nested 'if' blocks lead to a dead code block.

Source code is

   if (running == 0) {
        if (running) {
            blackout = RREG32(MC_SHARED_BLACKOUT_CNTL);
            WREG32(MC_SHARED_BLACKOUT_CNTL, blackout | 1);
        }

Regards

David Binderman

 		 	   		  


More information about the dri-devel mailing list