staging: lustre: replace MIN with min_t
Switch from MIN to the built in min_t with the int type. Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0c5754178d
commit
462ef1e0e7
@ -1087,7 +1087,7 @@ ksocknal_new_packet (ksock_conn_t *conn, int nob_to_skip)
|
||||
niov = 0;
|
||||
|
||||
do {
|
||||
nob = MIN (nob_to_skip, sizeof (ksocknal_slop_buffer));
|
||||
nob = min_t(int, nob_to_skip, sizeof(ksocknal_slop_buffer));
|
||||
|
||||
conn->ksnc_rx_iov[niov].iov_base = ksocknal_slop_buffer;
|
||||
conn->ksnc_rx_iov[niov].iov_len = nob;
|
||||
|
Loading…
Reference in New Issue
Block a user