Fix dead error condition, coverity ID 747.

This commit is contained in:
bouyer 2006-03-18 13:56:51 +00:00
parent d8a43c47ae
commit 9d8928a40d

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_inode.c,v 1.79 2005/12/11 12:25:25 christos Exp $ */
/* $NetBSD: ffs_inode.c,v 1.80 2006/03/18 13:56:51 bouyer Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ffs_inode.c,v 1.79 2005/12/11 12:25:25 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: ffs_inode.c,v 1.80 2006/03/18 13:56:51 bouyer Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@ -651,7 +651,7 @@ ffs_itimes(struct inode *ip, const struct timespec *acc,
if (ip->i_flag & IN_ACCESS) {
if (acc == NULL)
acc = ts == NULL ? (ts = nanotime(&tsb)) : ts;
acc = ts = nanotime(&tsb);
DIP_ASSIGN(ip, atime, acc->tv_sec);
DIP_ASSIGN(ip, atimensec, acc->tv_nsec);
}