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:
Silvan Jegen
2014-02-25 18:12:52 +01:00
committed by John W. Linville
parent 9ffd2e9a17
commit c8e4955653
17 changed files with 22 additions and 22 deletions

View File

@@ -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;