Re: [PATCH 2/5] scsi: core: drop the dead VPD size check

From: Bart Van Assche

Date: Thu Nov 05 2026 - 13:19:12 EST


On 11/5/26 3:33 AM, shao.mingyin@xxxxxxxxxx wrote:
scsi_vpd_inquiry() returns result + 4 where result is the page length
and is non-zero (otherwise it returns -EIO), so the returned value is at
least 5 bytes and the "result < SCSI_VPD_HEADER_SIZE" branch can never be
taken.

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>