aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/bat_sysfs.c')
-rw-r--r--net/batman-adv/bat_sysfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index c6efd687ca75..2c816883ca13 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -149,7 +149,7 @@ static int store_bool_attr(char *buff, size_t count,
149 atomic_read(attr) == 1 ? "enabled" : "disabled", 149 atomic_read(attr) == 1 ? "enabled" : "disabled",
150 enabled == 1 ? "enabled" : "disabled"); 150 enabled == 1 ? "enabled" : "disabled");
151 151
152 atomic_set(attr, (unsigned)enabled); 152 atomic_set(attr, (unsigned int)enabled);
153 return count; 153 return count;
154} 154}
155 155
@@ -268,7 +268,7 @@ static ssize_t store_vis_mode(struct kobject *kobj, struct attribute *attr,
268 "client" : "server", vis_mode_tmp == VIS_TYPE_CLIENT_UPDATE ? 268 "client" : "server", vis_mode_tmp == VIS_TYPE_CLIENT_UPDATE ?
269 "client" : "server"); 269 "client" : "server");
270 270
271 atomic_set(&bat_priv->vis_mode, (unsigned)vis_mode_tmp); 271 atomic_set(&bat_priv->vis_mode, (unsigned int)vis_mode_tmp);
272 return count; 272 return count;
273} 273}
274 274
@@ -354,7 +354,7 @@ static ssize_t store_gw_mode(struct kobject *kobj, struct attribute *attr,
354 curr_gw_mode_str, buff); 354 curr_gw_mode_str, buff);
355 355
356 gw_deselect(bat_priv); 356 gw_deselect(bat_priv);
357 atomic_set(&bat_priv->gw_mode, (unsigned)gw_mode_tmp); 357 atomic_set(&bat_priv->gw_mode, (unsigned int)gw_mode_tmp);
358 return count; 358 return count;
359} 359}
360 360