All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kdbus: drop useless goto
@ 2015-06-05 12:37 Marc-Antoine Perennou
  2015-06-05 12:59 ` David Herrmann
  2015-06-19  4:27 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Marc-Antoine Perennou @ 2015-06-05 12:37 UTC (permalink / raw)
  To: gregkh, linux-kernel

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] kdbus: drop useless goto
  2015-06-05 12:37 [PATCH] kdbus: drop useless goto Marc-Antoine Perennou
@ 2015-06-05 12:59 ` David Herrmann
  2015-06-19  4:27 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: David Herrmann @ 2015-06-05 12:59 UTC (permalink / raw)
  To: Marc-Antoine Perennou; +Cc: Greg Kroah-Hartman, linux-kernel

Hi

On Fri, Jun 5, 2015 at 2:37 PM, Marc-Antoine Perennou
<Marc-Antoine@perennou.com> wrote:
> Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
> ---
>  ipc/kdbus/names.c | 2 --
>  1 file changed, 2 deletions(-)

Reviewed-by: David Herrmann <dh.herrmann@gmail.com>

Thanks
David

> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] kdbus: drop useless goto
  2015-06-05 12:37 [PATCH] kdbus: drop useless goto Marc-Antoine Perennou
  2015-06-05 12:59 ` David Herrmann
@ 2015-06-19  4:27 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2015-06-19  4:27 UTC (permalink / raw)
  To: Marc-Antoine Perennou; +Cc: linux-kernel

On Fri, Jun 05, 2015 at 02:37:34PM +0200, Marc-Antoine Perennou wrote:
> Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
> ---
>  ipc/kdbus/names.c | 2 --
>  1 file changed, 2 deletions(-)

applied, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-19  4:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-05 12:37 [PATCH] kdbus: drop useless goto Marc-Antoine Perennou
2015-06-05 12:59 ` David Herrmann
2015-06-19  4:27 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.