projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
758ef74
)
agp: use NULL instead of 0 when pointer is needed
author
Bill Pemberton
<wfp5p@virginia.edu>
Fri, 30 Apr 2010 13:34:29 +0000
(09:34 -0400)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 11 May 2010 08:11:09 +0000
(10:11 +0200)
Fixes sparse warning:
drivers/char/agp/generic.c:1217:33: warning: Using plain integer as
NULL pointer
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
CC: linux-kernel@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/char/agp/generic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/agp/generic.c
b/drivers/char/agp/generic.c
index fb86708e47edb69693969d1be821ba71f2f31715..4b51982fd23a23a2c2683bfc3dd87dd1abe6af24 100644
(file)
--- a/
drivers/char/agp/generic.c
+++ b/
drivers/char/agp/generic.c
@@
-1214,7
+1214,7
@@
struct agp_memory *agp_generic_alloc_user(size_t page_count, int type)
return NULL;
for (i = 0; i < page_count; i++)
- new->pages[i] =
0
;
+ new->pages[i] =
NULL
;
new->page_count = 0;
new->type = type;
new->num_scratch_pages = pages;