public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/i915/bios: remove a redundant NULL pointer check
@ 2015-05-13 12:34 Jani Nikula
  2015-05-13 12:34 ` [PATCH 2/3] drm/i915/bios: abstract finding VBT in BIOS to a separate function Jani Nikula
  2015-05-13 12:34 ` [PATCH 3/3] drm/i915/bios: be more explicit about discarding iomem address space Jani Nikula
  0 siblings, 2 replies; 5+ messages in thread
From: Jani Nikula @ 2015-05-13 12:34 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

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 <jani.nikula@intel.com>
---
 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 cbd16c01959a..d39c41cf45a7 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.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-18  7:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 12:34 [PATCH 1/3] drm/i915/bios: remove a redundant NULL pointer check Jani Nikula
2015-05-13 12:34 ` [PATCH 2/3] drm/i915/bios: abstract finding VBT in BIOS to a separate function Jani Nikula
2015-05-13 12:34 ` [PATCH 3/3] drm/i915/bios: be more explicit about discarding iomem address space Jani Nikula
2015-05-14  9:06   ` shuang.he
2015-05-18  8:00   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox