summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_bios.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2015-05-13 15:34:03 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-20 11:25:59 +0200
commit4d70f38a760ad2879d2ebd84001c92980180f630 (patch)
tree252895eeb669a45bd6a6c473cca5bfad86a8cdd5 /drivers/gpu/drm/i915/intel_bios.c
parentc34ce3d19544dc5595938816af675e1e05b95920 (diff)
downloadlwn-4d70f38a760ad2879d2ebd84001c92980180f630.tar.gz
lwn-4d70f38a760ad2879d2ebd84001c92980180f630.zip
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 <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_bios.c')
-rw-r--r--drivers/gpu/drm/i915/intel_bios.c5
1 files changed, 0 insertions, 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");