]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: fld_request.c: Remove else after return.
authorAlberto Pires de Oliveira Neto <mrpenguin2005@gmail.com>
Mon, 2 Mar 2015 01:44:04 +0000 (22:44 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 02:46:15 +0000 (18:46 -0800)
    This patch fixes checkpatch.pl warning.
    WARNING: else is not generally useful after a break or return

Signed-off-by: Alberto Pires de Oliveira Neto <mrpenguin2005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fld/fld_request.c

index b8d17e109a961a1d30e3b016173a42378eff0d25..f3e9154afdc296a2080bc9ff7abd2cfc87e783ff 100644 (file)
@@ -217,10 +217,9 @@ int fld_client_add_target(struct lu_client_fld *fld,
                CERROR("%s: Attempt to add target %s (idx %llu) on fly - skip it\n",
                        fld->lcf_name, name, tar->ft_idx);
                return 0;
-       } else {
-               CDEBUG(D_INFO, "%s: Adding target %s (idx %llu)\n",
-                      fld->lcf_name, name, tar->ft_idx);
        }
+       CDEBUG(D_INFO, "%s: Adding target %s (idx %llu)\n",
+                       fld->lcf_name, name, tar->ft_idx);
 
        OBD_ALLOC_PTR(target);
        if (target == NULL)