Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/rockchip rk_v1crypto(4): Fix missing `error =' ...



details:   https://anonhg.NetBSD.org/src/rev/b53138da3470
branches:  trunk
changeset: 364717:b53138da3470
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Apr 08 23:14:21 2022 +0000

description:
rk_v1crypto(4): Fix missing `error =' assignment.

This is not likely to fail, but let's avoid suppressing an unlikely
error.

diffstat:

 sys/arch/arm/rockchip/rk_v1crypto.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a4a0e97bf24a -r b53138da3470 sys/arch/arm/rockchip/rk_v1crypto.c
--- a/sys/arch/arm/rockchip/rk_v1crypto.c       Fri Apr 08 23:14:10 2022 +0000
+++ b/sys/arch/arm/rockchip/rk_v1crypto.c       Fri Apr 08 23:14:21 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rk_v1crypto.c,v 1.8 2022/03/19 11:37:05 riastradh Exp $        */
+/*     $NetBSD: rk_v1crypto.c,v 1.9 2022/04/08 23:14:21 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: rk_v1crypto.c,v 1.8 2022/03/19 11:37:05 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: rk_v1crypto.c,v 1.9 2022/04/08 23:14:21 riastradh Exp $");
 
 #include <sys/types.h>
 
@@ -300,7 +300,7 @@
        }
 
        /* hw.rkv1cryptoN.rng (`struct', 32-byte array) */
-       sysctl_createv(&cy->cy_log, 0, &cy->cy_root_node, NULL,
+       error = sysctl_createv(&cy->cy_log, 0, &cy->cy_root_node, NULL,
            CTLFLAG_PERMANENT|CTLFLAG_READONLY|CTLFLAG_PRIVATE, CTLTYPE_STRUCT,
            "rng", SYSCTL_DESCR("Read up to 32 bytes out of the TRNG"),
            &rk_v1crypto_sysctl_rng, 0, sc, 0, CTL_CREATE, CTL_EOL);



Home | Main Index | Thread Index | Old Index