mirror of https://gitee.com/openkylin/linux.git
ocfs2: Remove pointless !!
ocfs2_stack_supports_plocks() doesn't need this to properly return a zero or one value. Signed-off-by: Mark Fasheh <mfasheh@suse.com>
This commit is contained in:
parent
5a09561199
commit
009d37502a
|
@ -290,7 +290,7 @@ EXPORT_SYMBOL_GPL(ocfs2_dlm_dump_lksb);
|
|||
|
||||
int ocfs2_stack_supports_plocks(void)
|
||||
{
|
||||
return !!(active_stack && active_stack->sp_ops->plock);
|
||||
return active_stack && active_stack->sp_ops->plock;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ocfs2_stack_supports_plocks);
|
||||
|
||||
|
|
Loading…
Reference in New Issue