mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org
Subject: [PATCH] kdbus: drop useless goto
Date: Fri,  5 Jun 2015 14:37:34 +0200	[thread overview]
Message-ID: <1433507854-2056-1-git-send-email-Marc-Antoine@Perennou.com> (raw)

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
---
 ipc/kdbus/names.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ipc/kdbus/names.c b/ipc/kdbus/names.c
index 5f5d84e..d77ee08 100644
--- a/ipc/kdbus/names.c
+++ b/ipc/kdbus/names.c
@@ -514,8 +514,6 @@ int kdbus_cmd_name_acquire(struct kdbus_conn *conn, void __user *argp)
 
 	ret = kdbus_name_acquire(conn->ep->bus->name_registry, conn, item_name,
 				 cmd->flags, &cmd->return_flags);
-	if (ret < 0)
-		goto exit_dec;
 
 exit_dec:
 	atomic_dec(&conn->name_count);
-- 
2.4.2


             reply	other threads:[~2015-06-05 12:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-05 12:37 Marc-Antoine Perennou [this message]
2015-06-05 12:59 ` David Herrmann
2015-06-19  4:27 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433507854-2056-1-git-send-email-Marc-Antoine@Perennou.com \
    --to=marc-antoine@perennou.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®