]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From: Mark Fasheh <mfasheh@suse.com> |
2 | Subject: ocfs2: Remove pointless !! | |
3 | Patch-mainline: 2.6.28 | |
4 | ||
5 | ocfs2_stack_supports_plocks() doesn't need this to properly return a zero or | |
6 | one value. | |
7 | ||
8 | Signed-off-by: Mark Fasheh <mfasheh@suse.com> | |
9 | --- | |
10 | fs/ocfs2/stackglue.c | 2 +- | |
11 | 1 files changed, 1 insertions(+), 1 deletions(-) | |
12 | ||
13 | Index: linux-2.6.27/fs/ocfs2/stackglue.c | |
14 | =================================================================== | |
15 | --- linux-2.6.27.orig/fs/ocfs2/stackglue.c | |
16 | +++ linux-2.6.27/fs/ocfs2/stackglue.c | |
17 | @@ -290,7 +290,7 @@ EXPORT_SYMBOL_GPL(ocfs2_dlm_dump_lksb); | |
18 | ||
19 | int ocfs2_stack_supports_plocks(void) | |
20 | { | |
21 | - return !!(active_stack && active_stack->sp_ops->plock); | |
22 | + return active_stack && active_stack->sp_ops->plock; | |
23 | } | |
24 | EXPORT_SYMBOL_GPL(ocfs2_stack_supports_plocks); | |
25 |