diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2010-01-12 00:41:04 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2010-01-12 00:41:04 +0000 |
commit | e266b35f03cbe8b412f5f40680c592707e505d25 (patch) | |
tree | 620d599d4742620e3d15a209788723c807eaa8bc /sys/dev/rasops | |
parent | 2e154ddfcb86123853949bfb735f2cf19d7104d2 (diff) |
Do not check malloc return value against NULL, as M_WAITOK is used.
ok miod@
Diffstat (limited to 'sys/dev/rasops')
-rw-r--r-- | sys/dev/rasops/rasops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index 3e12b2f5fb5..3867baa5a5e 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.20 2009/09/05 14:09:35 miod Exp $ */ +/* $OpenBSD: rasops.c,v 1.21 2010/01/12 00:41:03 chl Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -1147,8 +1147,6 @@ rasops_rotate_font(int *cookie) */ f = malloc(sizeof(struct rotatedfont), M_DEVBUF, M_WAITOK); - if (f == NULL) - return; if ((ncookie = wsfont_rotate(*cookie)) == -1) return; |