From 8c8e84871058eafdfe69639ee3fab58c55165f49 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Tue, 25 Aug 2015 17:39:03 +0000 Subject: [PATCH] ioat(4): Minor style cleanups Suggested by: ngie Reviewed by: jimharris Approved by: markj (mentor) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3481 --- sys/dev/ioat/ioat.c | 2 +- tools/tools/ioat/Makefile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/ioat/ioat.c b/sys/dev/ioat/ioat.c index a3bd5ce40670..492efbd84d64 100644 --- a/sys/dev/ioat/ioat.c +++ b/sys/dev/ioat/ioat.c @@ -798,7 +798,7 @@ resize_ring(struct ioat_softc *ioat, int order) new_idx = (ioat->tail + i) & (new_size - 1); ring[new_idx] = ioat_alloc_ring_entry(ioat); - if (!ring[new_idx]) { + if (ring[new_idx] == NULL) { while (i--) { new_idx2 = (ioat->tail + i) & (new_size - 1); diff --git a/tools/tools/ioat/Makefile b/tools/tools/ioat/Makefile index 08acfe143ae1..a3f496892145 100644 --- a/tools/tools/ioat/Makefile +++ b/tools/tools/ioat/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= ioatcontrol -SRCS= ioatcontrol.c MAN= ioatcontrol.8 CFLAGS+= -I${.CURDIR:H:H:H}/sys/dev/ioat WARNS?= 6