mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
netfilter: xt_IDLETIMER: clean up some indenting
These lines were indented wrong so Smatch complained. net/netfilter/xt_IDLETIMER.c:81 idletimer_tg_show() warn: inconsistent indenting Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
049dee95f8
commit
f628c27d85
@ -77,9 +77,8 @@ static ssize_t idletimer_tg_show(struct device *dev,
|
|||||||
ktimespec = ktime_to_timespec64(expires_alarm);
|
ktimespec = ktime_to_timespec64(expires_alarm);
|
||||||
time_diff = ktimespec.tv_sec;
|
time_diff = ktimespec.tv_sec;
|
||||||
} else {
|
} else {
|
||||||
expires = timer->timer.expires;
|
expires = timer->timer.expires;
|
||||||
time_diff = jiffies_to_msecs(
|
time_diff = jiffies_to_msecs(expires - jiffies) / 1000;
|
||||||
expires - jiffies) / 1000;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,7 +215,7 @@ static int idletimer_tg_create_v1(struct idletimer_tg_info_v1 *info)
|
|||||||
kobject_uevent(idletimer_tg_kobj,KOBJ_ADD);
|
kobject_uevent(idletimer_tg_kobj,KOBJ_ADD);
|
||||||
|
|
||||||
list_add(&info->timer->entry, &idletimer_tg_list);
|
list_add(&info->timer->entry, &idletimer_tg_list);
|
||||||
pr_debug("timer type value is %u", info->timer_type);
|
pr_debug("timer type value is %u", info->timer_type);
|
||||||
info->timer->timer_type = info->timer_type;
|
info->timer->timer_type = info->timer_type;
|
||||||
info->timer->refcnt = 1;
|
info->timer->refcnt = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user