net: Replace min macro with min_t
Instead of an explicit cast, use the min_t macro. Signed-off-by: Silvan Jegen <s.jegen@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
9ffd2e9a17
commit
c8e4955653
@@ -286,7 +286,7 @@ static ssize_t rt2x00debug_read_queue_dump(struct file *file,
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
status = min((size_t)skb->len, length);
|
||||
status = min_t(size_t, skb->len, length);
|
||||
if (copy_to_user(buf, skb->data, status)) {
|
||||
status = -EFAULT;
|
||||
goto exit;
|
||||
|
Reference in New Issue
Block a user