projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89cf7cc
)
[AGPGART] Fix sparse warning in sgi-agp.c
author
Dave Jones
<davej@redhat.com>
Mon, 9 Apr 2007 06:20:34 +0000
(
02:20
-0400)
committer
Dave Jones
<davej@redhat.com>
Thu, 26 Apr 2007 18:22:51 +0000
(14:22 -0400)
drivers/char/agp/sgi-agp.c:51:10: warning: Using plain integer as NULL pointer
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/sgi-agp.c
patch
|
blob
|
history
diff --git
a/drivers/char/agp/sgi-agp.c
b/drivers/char/agp/sgi-agp.c
index ee8f50edde1bd1f320c7ce15002e035be81883b2..cda608c42bea35e9fd7ed8f79f50ef1e9b8412ad 100644
(file)
--- a/
drivers/char/agp/sgi-agp.c
+++ b/
drivers/char/agp/sgi-agp.c
@@
-47,9
+47,8
@@
static void *sgi_tioca_alloc_page(struct agp_bridge_data *bridge)
nid = info->ca_closest_node;
page = alloc_pages_node(nid, GFP_KERNEL, 0);
- if (page == NULL) {
- return 0;
- }
+ if (!page)
+ return NULL;
get_page(page);
SetPageLocked(page);