Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/imcsmb For non-modular driver, don't set return stat...



details:   https://anonhg.NetBSD.org/src/rev/7b17378464bf
branches:  trunk
changeset: 359817:7b17378464bf
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Feb 26 05:47:03 2018 +0000

description:
For non-modular driver, don't set return status for the default case.

diffstat:

 sys/dev/imcsmb/imc.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 7b54d5325366 -r 7b17378464bf sys/dev/imcsmb/imc.c
--- a/sys/dev/imcsmb/imc.c      Mon Feb 26 05:04:51 2018 +0000
+++ b/sys/dev/imcsmb/imc.c      Mon Feb 26 05:47:03 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imc.c,v 1.3 2018/02/26 05:01:21 pgoyette Exp $ */
+/* $NetBSD: imc.c,v 1.4 2018/02/26 05:47:03 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -376,8 +376,10 @@
                        mutex_destroy(&imc_access_mutex);
                break;
        default:
+#ifdef _MODULE
                error = ENOTTY;
                break;
+#endif
        }
 
        return error;



Home | Main Index | Thread Index | Old Index