]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/display: vcpi is always greater than zero
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Fri, 23 Jan 2026 17:09:15 +0000 (17:09 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 29 Jan 2026 00:01:08 +0000 (16:01 -0800)
commit671e1cfe5b23384245be5ec094e92906ca585fce
tree02bb5b571493eac087ad3c45c1b3b73a8654f554
parentb3a2a91ae9b48c74e50833242af7d73f8a0ec3a6
drm/i915/display: vcpi is always greater than zero

Static analysis issue:

intel_conn_to_vcpi currently checks and asserts vcpi >= 0, as grabbed
from payload->vcpi.  But payload->vcpi is a u8, so this is always true.
Remove this unnecessary check.

While we're here, the jump statements in this function are largely
defunct now, so remove those as well.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260123170914.64548-2-jonathan.cavitt@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/i915/display/intel_hdcp.c