提交 6f9b5f84 编写于 作者: A Andreas Gruenbacher 提交者: Philipp Reisner

drbd: Make broadcast events return NO_ERROR

Instead of returning a ret_code outside of the range of enum
drbd_ret_code, use NO_ERROR to indicate success.  This way,
ret_code has the same meaning in all packets.
Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
上级 c141ebda
...@@ -3183,7 +3183,7 @@ void drbd_bcast_event(struct drbd_conf *mdev, const struct sib_info *sib) ...@@ -3183,7 +3183,7 @@ void drbd_bcast_event(struct drbd_conf *mdev, const struct sib_info *sib)
if (!d_out) /* cannot happen, but anyways. */ if (!d_out) /* cannot happen, but anyways. */
goto nla_put_failure; goto nla_put_failure;
d_out->minor = mdev_to_minor(mdev); d_out->minor = mdev_to_minor(mdev);
d_out->ret_code = 0; d_out->ret_code = NO_ERROR;
if (nla_put_status_info(msg, mdev, sib)) if (nla_put_status_info(msg, mdev, sib))
goto nla_put_failure; goto nla_put_failure;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册