提交 3fb91d11 编写于 作者: J Johannes Schilling 提交者: Greg Kroah-Hartman

keucr: use more specific max_t(int, ..

as advised by checkpatch, changed generic max(..) to max_t(int, ..
Signed-off-by: NLaura Lawniczak <laura.lawniczak@googlemail.com>
Signed-off-by: NJohannes Schilling <of82ecuq@cip.cs.fau.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8be88040
......@@ -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));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册