Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/udf Don't create a variable just to assert() on it - ...



details:   https://anonhg.NetBSD.org/src/rev/1f788dd549a6
branches:  trunk
changeset: 791512:1f788dd549a6
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Nov 21 23:42:09 2013 +0000

description:
Don't create a variable just to assert() on it - assert on the
thing the variable got assigned.

diffstat:

 sys/fs/udf/udf_subr.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 7e8519ee5f82 -r 1f788dd549a6 sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c     Thu Nov 21 22:04:40 2013 +0000
+++ b/sys/fs/udf/udf_subr.c     Thu Nov 21 23:42:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.121 2013/10/18 19:56:55 christos Exp $ */
+/* $NetBSD: udf_subr.c,v 1.122 2013/11/21 23:42:09 riz Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.121 2013/10/18 19:56:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.122 2013/11/21 23:42:09 riz Exp $");
 #endif /* not lint */
 
 
@@ -4764,7 +4764,6 @@
        struct dirhash       *dirh;
        struct dirhash_entry *dirh_ep;
        struct file_entry    *fe  = dir_node->fe;
-       struct extfile_entry *efe = dir_node->efe;
        struct fileid_desc *fid;
        struct dirent *dirent;
        uint64_t diroffset;
@@ -4785,7 +4784,7 @@
 
        /* get directory filesize */
        if (!fe) {
-               assert(efe);
+               assert(dir_node->efe);
        }
 
        /* allocate temporary space for fid */



Home | Main Index | Thread Index | Old Index