aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/sysfs.c')
-rw-r--r--drivers/net/wireless/b43/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/sysfs.c b/drivers/net/wireless/b43/sysfs.c
index 8e8431d4eb0c..3190493bd07f 100644
--- a/drivers/net/wireless/b43/sysfs.c
+++ b/drivers/net/wireless/b43/sysfs.c
@@ -40,7 +40,7 @@ static int get_integer(const char *buf, size_t count)
40 40
41 if (count == 0) 41 if (count == 0)
42 goto out; 42 goto out;
43 count = min(count, (size_t) 10); 43 count = min_t(size_t, count, 10);
44 memcpy(tmp, buf, count); 44 memcpy(tmp, buf, count);
45 ret = simple_strtol(tmp, NULL, 10); 45 ret = simple_strtol(tmp, NULL, 10);
46 out: 46 out: