|
@@ -154,11 +154,10 @@ int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid)
|
|
|
spin_lock(&stats->ls_lock);
|
|
|
if (stats->ls_biggest_alloc_num <= cpuid)
|
|
|
stats->ls_biggest_alloc_num = cpuid + 1;
|
|
|
- if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) {
|
|
|
+ if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE)
|
|
|
spin_unlock_irqrestore(&stats->ls_lock, flags);
|
|
|
- } else {
|
|
|
+ else
|
|
|
spin_unlock(&stats->ls_lock);
|
|
|
- }
|
|
|
}
|
|
|
/* initialize the ls_percpu[cpuid] non-zero counter */
|
|
|
for (i = 0; i < stats->ls_num; ++i) {
|