namespace.c: fix bug with trailing ; on an if statement
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jan 2014 21:54:20 +0000 (13:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jan 2014 21:54:20 +0000 (13:54 -0800)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
namespace.c

index 75cf5c09daf7aa722a67a4cee706e5ffffd14b1a..ea3b6aadc9e6cee3cc28f1c2061aa11b1892b231 100644 (file)
@@ -260,7 +260,7 @@ int kdbus_ns_new(struct kdbus_ns *parent, const char *name, umode_t mode, struct
         */
        ret = idr_alloc(&kdbus_ns_major_idr, n, n->major, 0, GFP_KERNEL);
        if (ret < 0) {
-               if (ret == -ENOSPC);
+               if (ret == -ENOSPC)
                        ret = -EEXIST;
                goto exit_unlock;
        }