Skip to content
Snippets Groups Projects
Commit 48f62656 authored by Arun Muthusamy's avatar Arun Muthusamy
Browse files

rm static var declaration

parent ddfe15c1
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ struct json_object *mobile_set_pin(struct device *dev, char *current_pin, char * ...@@ -5,7 +5,7 @@ struct json_object *mobile_set_pin(struct device *dev, char *current_pin, char *
if (strcmp(dev->usb.if_name, "usb0") == 0) if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_set_pin_zte(dev->ip, current_pin, new_pin); return mobile_set_pin_zte(dev->ip, current_pin, new_pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0) else if (strcmp(dev->usb.if_name, "eth5") == 0)
return mobile_set_pin_hilink("12345678", "12345678"); return mobile_set_pin_hilink(current_pin, new_pin);
return NULL; return NULL;
} }
...@@ -15,7 +15,7 @@ struct json_object *mobile_disable_pin(struct device *dev, char *pin) ...@@ -15,7 +15,7 @@ struct json_object *mobile_disable_pin(struct device *dev, char *pin)
if (strcmp(dev->usb.if_name, "usb0") == 0) if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_disable_pin_zte(dev->ip, pin); return mobile_disable_pin_zte(dev->ip, pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0) else if (strcmp(dev->usb.if_name, "eth5") == 0)
return mobile_disable_pin_hilink("12345678"); return mobile_disable_pin_hilink(pin);
return NULL; return NULL;
} }
...@@ -25,7 +25,7 @@ struct json_object *mobile_verify_pin(struct device *dev, char *pin) ...@@ -25,7 +25,7 @@ struct json_object *mobile_verify_pin(struct device *dev, char *pin)
if (strcmp(dev->usb.if_name, "usb0") == 0) if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_verify_pin_zte(dev->ip, pin); return mobile_verify_pin_zte(dev->ip, pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0) else if (strcmp(dev->usb.if_name, "eth5") == 0)
return mobile_set_pin_hilink("12345678", "12345678"); return mobile_set_pin_hilink(pin, pin);
return NULL; return NULL;
} }
...@@ -35,7 +35,7 @@ struct json_object *mobile_enable_pin(struct device *dev, char *pin) ...@@ -35,7 +35,7 @@ struct json_object *mobile_enable_pin(struct device *dev, char *pin)
if (strcmp(dev->usb.if_name, "usb0") == 0) if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_enable_pin_zte(dev->ip, pin); return mobile_enable_pin_zte(dev->ip, pin);
else if (strcmp(dev->usb.if_name, "eth5") == 0) else if (strcmp(dev->usb.if_name, "eth5") == 0)
return mobile_enable_pin_hilink("12345678"); return mobile_enable_pin_hilink(pin);
return NULL; return NULL;
} }
...@@ -75,7 +75,7 @@ struct json_object *mobile_delete_apn_profile(struct device *dev, char *name) ...@@ -75,7 +75,7 @@ struct json_object *mobile_delete_apn_profile(struct device *dev, char *name)
if (strcmp(dev->usb.if_name, "usb0") == 0) if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_delete_apn_profile_zte(dev->ip, name); return mobile_delete_apn_profile_zte(dev->ip, name);
else if (strcmp(dev->usb.if_name, "eth5") == 0) else if (strcmp(dev->usb.if_name, "eth5") == 0)
return mobile_delete_apn_profile_hilink(1); return mobile_delete_apn_profile_hilink(0);
return NULL; return NULL;
} }
...@@ -85,7 +85,7 @@ struct json_object *mobile_set_apn_profile(struct device *dev, char *name) ...@@ -85,7 +85,7 @@ struct json_object *mobile_set_apn_profile(struct device *dev, char *name)
if (strcmp(dev->usb.if_name, "usb0") == 0) if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_set_apn_profile_zte(dev->ip, name); return mobile_set_apn_profile_zte(dev->ip, name);
else if (strcmp(dev->usb.if_name, "eth5") == 0) else if (strcmp(dev->usb.if_name, "eth5") == 0)
return mobile_set_apn_profile_hilink("arun", "arun", "arun", "arun"); return mobile_set_apn_profile_hilink(name, name, name, name);
return NULL; return NULL;
} }
...@@ -95,7 +95,7 @@ struct json_object *mobile_create_apn_profile(struct device *dev, char *profile_ ...@@ -95,7 +95,7 @@ struct json_object *mobile_create_apn_profile(struct device *dev, char *profile_
if (strcmp(dev->usb.if_name, "usb0") == 0) if (strcmp(dev->usb.if_name, "usb0") == 0)
return mobile_create_apn_profile_zte(dev->ip, profile_name, wan_apn, pdp_type); return mobile_create_apn_profile_zte(dev->ip, profile_name, wan_apn, pdp_type);
else if (strcmp(dev->usb.if_name, "eth5") == 0) else if (strcmp(dev->usb.if_name, "eth5") == 0)
return mobile_create_apn_profile_hilink("test", "test", "test", "test"); return mobile_create_apn_profile_hilink(profile_name, profile_name, profile_name,profile_name);
return NULL; return NULL;
} }
...@@ -188,4 +188,4 @@ struct json_object *mobile_get_pin_status(struct device *dev) ...@@ -188,4 +188,4 @@ struct json_object *mobile_get_pin_status(struct device *dev)
return mobile_get_pin_status_hilink(); return mobile_get_pin_status_hilink();
return NULL; return NULL;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment