drbd: Make broadcast events return NO_ERROR
authorAndreas Gruenbacher <agruen@linbit.com>
Thu, 5 May 2011 23:03:32 +0000 (01:03 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:55:48 +0000 (16:55 +0100)
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>
drivers/block/drbd/drbd_nl.c

index 72ce3b0..195428e 100644 (file)
@@ -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;