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>
This commit is contained in:
parent
c34ce3d195
commit
4d70f38a76
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue