Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netsmb Rearrange so that error check is only done after ...



details:   https://anonhg.NetBSD.org/src/rev/b3bc739257e8
branches:  trunk
changeset: 816689:b3bc739257e8
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Jul 18 21:03:01 2016 +0000

description:
Rearrange so that error check is only done after error has been set.

CID 1364141

diffstat:

 sys/netsmb/smb_dev.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 12847dae51b5 -r b3bc739257e8 sys/netsmb/smb_dev.c
--- a/sys/netsmb/smb_dev.c      Mon Jul 18 19:51:06 2016 +0000
+++ b/sys/netsmb/smb_dev.c      Mon Jul 18 21:03:01 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smb_dev.c,v 1.48 2016/07/17 02:48:07 pgoyette Exp $    */
+/*     $NetBSD: smb_dev.c,v 1.49 2016/07/18 21:03:01 pgoyette Exp $    */
 
 /*
  * Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smb_dev.c,v 1.48 2016/07/17 02:48:07 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smb_dev.c,v 1.49 2016/07/18 21:03:01 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -383,10 +383,10 @@
 #ifdef _MODULE
                error =
                    devsw_attach("nsmb", NULL, &bmajor, &nsmb_cdevsw, &cmajor);
-#endif
                if (error) {
                        nsmbdetach();
                }
+#endif
 
                break;
            case MODULE_CMD_FINI:



Home | Main Index | Thread Index | Old Index