summaryrefslogtreecommitdiff
path: root/sys/dev/pccbb
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-11-12 05:21:06 +0000
committerWarner Losh <imp@FreeBSD.org>2003-11-12 05:21:06 +0000
commita66f2afd1a5386d8c317f62c7995f2290d4543e0 (patch)
tree1147ffbdaac5d6c9645d09c36f8e65f8d37f43cc /sys/dev/pccbb
parent543729cf93e8064abb7108b0d61d9761447ef1f4 (diff)
Notes
Diffstat (limited to 'sys/dev/pccbb')
-rw-r--r--sys/dev/pccbb/pccbb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c
index b338101530dd..c213bb4c31c6 100644
--- a/sys/dev/pccbb/pccbb.c
+++ b/sys/dev/pccbb/pccbb.c
@@ -25,8 +25,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
/*
@@ -74,6 +72,9 @@
* * David Cross: Author of the initial ugly hack for a specific cardbus card
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
@@ -337,7 +338,7 @@ cbb_insert_res(struct cbb_softc *sc, struct resource *res, int type,
* it later.
*/
rle = malloc(sizeof(struct cbb_reslist), M_DEVBUF, M_NOWAIT);
- if (!res)
+ if (rle == NULL)
panic("cbb_cardbus_alloc_resource: can't record entry!");
rle->res = res;
rle->type = type;