staging/lustre: Remove unneeded {} in lprocfs_stats_unlock()
Since there's only one call in those if () else branches, the braces are not really necessary. Highlighted by checkpatch. Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
12a880bfde
commit
da24e7715f
|
@ -426,11 +426,10 @@ static inline void lprocfs_stats_unlock(struct lprocfs_stats *stats, int opc,
|
||||||
|
|
||||||
case LPROCFS_GET_SMP_ID:
|
case LPROCFS_GET_SMP_ID:
|
||||||
if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) {
|
if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) {
|
||||||
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);
|
spin_unlock_irqrestore(&stats->ls_lock, *flags);
|
||||||
} else {
|
else
|
||||||
spin_unlock(&stats->ls_lock);
|
spin_unlock(&stats->ls_lock);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
put_cpu();
|
put_cpu();
|
||||||
}
|
}
|
||||||
|
@ -438,11 +437,10 @@ static inline void lprocfs_stats_unlock(struct lprocfs_stats *stats, int opc,
|
||||||
|
|
||||||
case LPROCFS_GET_NUM_CPU:
|
case LPROCFS_GET_NUM_CPU:
|
||||||
if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) {
|
if (stats->ls_flags & LPROCFS_STATS_FLAG_NOPERCPU) {
|
||||||
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);
|
spin_unlock_irqrestore(&stats->ls_lock, *flags);
|
||||||
} else {
|
else
|
||||||
spin_unlock(&stats->ls_lock);
|
spin_unlock(&stats->ls_lock);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue