[Intel-gfx] [PATCH v2 2/2] drm/i915/hdcp: Fix uninitialized symbol

2021-01-20 Thread Anshuman Gupta
Move (num_hdcp_streams > 0) condition to stream_encryption() code block, where it actually belongs. This fixes the static analysis error of uninitialized symbol 'ret'. v2: - return 0 as the return value is already checked. [Ankit] Cc: Ramalingam C Reported-by: kernel test robot Reported-by: Dan

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915/hdcp: Fix uninitialized symbol

2021-01-20 Thread Nautiyal, Ankit K
On 1/19/2021 12:16 PM, Anshuman Gupta wrote: Move (num_hdcp_streams > 0) condition to stream_encryption() code block, where it actually belongs. This fixes the static analysis error of uninitialized symbol 'ret'. Cc: Ramalingam C Signed-off-by: Anshuman Gupta --- drivers/gpu/drm/i915/displ

[Intel-gfx] [PATCH v2 2/2] drm/i915/hdcp: Fix uninitialized symbol

2021-01-18 Thread Anshuman Gupta
Move (num_hdcp_streams > 0) condition to stream_encryption() code block, where it actually belongs. This fixes the static analysis error of uninitialized symbol 'ret'. Cc: Ramalingam C Signed-off-by: Anshuman Gupta --- drivers/gpu/drm/i915/display/intel_hdcp.c | 20 ++-- 1 file