drm/i915/bios: remove a redundant NULL pointer check
authorJani Nikula <jani.nikula@intel.com>
Wed, 13 May 2015 12:34:03 +0000 (15:34 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:25:59 +0000 (11:25 +0200)
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>
drivers/gpu/drm/i915/intel_bios.c

index cbd16c01959a01a1df86bf99ccf1f41748b91b96..d39c41cf45a7d7f8db35dbf6be2069d5438c3cdb 100644 (file)
@@ -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");