mirror of https://gitee.com/openkylin/linux.git
keucr: use more specific max_t(int, ..
as advised by checkpatch, changed generic max(..) to max_t(int, .. Signed-off-by: Laura Lawniczak <laura.lawniczak@googlemail.com> Signed-off-by: Johannes Schilling <of82ecuq@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8be8804000
commit
3fb91d1128
|
@ -708,8 +708,8 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)
|
|||
|
||||
} else {
|
||||
residue = min(residue, transfer_length);
|
||||
scsi_set_resid(srb, max(scsi_get_resid(srb),
|
||||
(int) residue));
|
||||
scsi_set_resid(srb, max_t(int, scsi_get_resid(srb),
|
||||
residue));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue