Message ID | tencent_E821B8DA466472675139402A7A799C7CCC0A@qq.com |
---|---|
State | New |
Headers | show |
Series | scsi: scsi_debug:Use min_t to replace min | expand |
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index a9d8a9c62663..bd24ffa68e85 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -4886,7 +4886,7 @@ static int resp_get_stream_status(struct scsi_cmnd *scp, } put_unaligned_be32(offset - 8, &h->len); /* PARAMETER DATA LENGTH */ - return fill_from_dev_buffer(scp, arr, min(offset, alloc_len)); + return fill_from_dev_buffer(scp, arr, min_t(u32, offset, alloc_len)); } static int resp_sync_cache(struct scsi_cmnd *scp,