diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-05-06 01:03:32 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 16:55:48 +0100 |
commit | 6f9b5f84f5fb46def198b943e59c79aea0695c5c (patch) | |
tree | d5e0b026cb6df7c74d629b3a2a4864e3f5720e92 | |
parent | c141ebda031a0550d75634f7c94f7c85c2d5c9f5 (diff) | |
download | talos-obmc-linux-6f9b5f84f5fb46def198b943e59c79aea0695c5c.tar.gz talos-obmc-linux-6f9b5f84f5fb46def198b943e59c79aea0695c5c.zip |
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: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index 72ce3b0d0e03..195428ee6052 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c @@ -3183,7 +3183,7 @@ void drbd_bcast_event(struct drbd_conf *mdev, const struct sib_info *sib) if (!d_out) /* cannot happen, but anyways. */ goto nla_put_failure; 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)) goto nla_put_failure; |