Skip to contentSkip to conversation

drm: Remove redundant code

PATCH New Jiapeng Chong 1 participant 1 message Mar 3, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Remove redundant code

Clean up the following smatch warning:

drivers/gpu/drm/radeon/atom.c:400 atom_skip_src_int() warn: ignoring unreachable code.

---
 drivers/gpu/drm/radeon/atom.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/radeon/atom.c +0 -1
index c1bbfbe28bda..13940f5e783a 100644
@@ -397,7 +397,6 @@ static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr)
 			(*ptr)++;
 			return;
 		}
-		return;
 	}
 }
 
Signature · 1 line
2.20.1.7.g153144c