Change-Id: I4c31f0d4ab49691770ef31fca76548b525011273
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
}
int grp_idx = 1;
- if (group_idx != NULL && strlen(group_idx)) {
+ if (strlen(group_idx)) {
grp_idx = (unsigned short)strtol(group_idx, NULL, 10);
if (0 >= grp_idx) {
msgp("Invalid index. set to 1");
}
int dev_idx = 1;
- if (device_idx != NULL && strlen(device_idx)) {
+ if (strlen(device_idx)) {
dev_idx = (unsigned short)strtol(device_idx, NULL, 10);
if (0 >= dev_idx) {
msgp("Invalid index. set to 1");