提交 9d2b75f6 编写于 作者: I Ira Weiny 提交者: Greg Kroah-Hartman

staging/rdma/hfi1: diag.c add missing braces

Else statements should continue using braces even if there is only 1 line in
the block.  Found by checkpatch --strict
Signed-off-by: NIra Weiny <ira.weiny@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 47bc1697
......@@ -954,12 +954,14 @@ static ssize_t hfi1_snoop_read(struct file *fp, char __user *data,
ret = -EFAULT;
else
ret = packet->total_len;
} else
} else {
ret = -EINVAL;
}
kfree(packet);
} else
} else {
spin_unlock_irqrestore(&dd->hfi1_snoop.snoop_lock, flags);
}
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册