From 4d70f38a760ad2879d2ebd84001c92980180f630 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Wed, 13 May 2015 15:34:03 +0300 Subject: [PATCH] drm/i915/bios: remove a redundant NULL pointer check We never pass a non-NULL vbt to validate_vbt, and we can safely expect the callers to not change. Signed-off-by: Jani Nikula Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_bios.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index cbd16c0..d39c41c 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -1207,11 +1207,6 @@ static const struct bdb_header *validate_vbt(const void *base, size_t size, size_t offset; const struct bdb_header *bdb; - if (vbt == NULL) { - DRM_DEBUG_DRIVER("VBT signature missing\n"); - return NULL; - } - offset = _vbt - base; if (offset + sizeof(struct vbt_header) > size) { DRM_DEBUG_DRIVER("VBT header incomplete\n"); -- 2.7.4