diff mbox series

[ovs-dev,10/11] ovn-nbctl: Remove pointless "return; " at ends of functions.

Message ID 20180717133415.23781-11-jkbs@redhat.com
State Accepted
Headers show
Series Get rid of ctl_fatal() calls in ovn-nbctl (part 2) | expand

Commit Message

Jakub Sitnicki July 17, 2018, 1:34 p.m. UTC
Fix fall-out from applying a semantic patch that converts ctl_fatal()
calls to use ctl_error().

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
---
 ovn/utilities/ovn-nbctl.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Ben Pfaff July 23, 2018, 10:38 p.m. UTC | #1
On Tue, Jul 17, 2018 at 03:34:14PM +0200, Jakub Sitnicki wrote:
> Fix fall-out from applying a semantic patch that converts ctl_fatal()
> calls to use ctl_error().
> 
> Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>

Oh, you fixed that up later ;-).  Ha, I'll revert it to your way
instead, never mind.
Jakub Sitnicki July 24, 2018, 1:20 p.m. UTC | #2
On Mon, 23 Jul 2018 15:38:55 -0700
Ben Pfaff <blp@ovn.org> wrote:

> On Tue, Jul 17, 2018 at 03:34:14PM +0200, Jakub Sitnicki wrote:
> > Fix fall-out from applying a semantic patch that converts ctl_fatal()
> > calls to use ctl_error().
> > 
> > Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>  
> 
> Oh, you fixed that up later ;-).  Ha, I'll revert it to your way
> instead, never mind.

Yes, I've decided to do fix-ups separately so that the
Coccinelle-generated patches could be reviewed based on the semantic
patch. Not sure if that worked out fine or just created confusion.

-Jakub
Ben Pfaff July 24, 2018, 4:18 p.m. UTC | #3
On Tue, Jul 24, 2018 at 03:20:25PM +0200, Jakub Sitnicki wrote:
> On Mon, 23 Jul 2018 15:38:55 -0700
> Ben Pfaff <blp@ovn.org> wrote:
> 
> > On Tue, Jul 17, 2018 at 03:34:14PM +0200, Jakub Sitnicki wrote:
> > > Fix fall-out from applying a semantic patch that converts ctl_fatal()
> > > calls to use ctl_error().
> > > 
> > > Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>  
> > 
> > Oh, you fixed that up later ;-).  Ha, I'll revert it to your way
> > instead, never mind.
> 
> Yes, I've decided to do fix-ups separately so that the
> Coccinelle-generated patches could be reviewed based on the semantic
> patch. Not sure if that worked out fine or just created confusion.

I thought that these two were OK, but I'd probably insist on squashing
if one of the fix-ups could cause bisection problems.
diff mbox series

Patch

diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c
index 8301e74cc..27e3151a8 100644
--- a/ovn/utilities/ovn-nbctl.c
+++ b/ovn/utilities/ovn-nbctl.c
@@ -1149,7 +1149,6 @@  nbctl_lsp_del(struct ctl_context *ctx)
     /* Can't happen because of the database schema. */
     ctl_error(ctx, "logical port %s is not part of any logical switch",
               ctx->argv[1]);
-    return;
 }
 
 static void
@@ -3787,7 +3786,6 @@  nbctl_lrp_del(struct ctl_context *ctx)
     /* Can't happen because of the database schema. */
     ctl_error(ctx, "logical port %s is not part of any logical router",
               ctx->argv[1]);
-    return;
 }
 
 /* Print a list of logical router ports. */