projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'microblaze-v4.18-rc3' of git://git.monstr.eu/linux-2.6-microblaze
[linux-2.6-microblaze.git]
/
lib
/
test_overflow.c
diff --git
a/lib/test_overflow.c
b/lib/test_overflow.c
index
aecbbb2
..
2278fe0
100644
(file)
--- a/
lib/test_overflow.c
+++ b/
lib/test_overflow.c
@@
-367,7
+367,7
@@
static int __init test_overflow_allocation(void)
/* Create dummy device for devm_kmalloc()-family tests. */
dev = root_device_register(device_name);
- if (
!dev
) {
+ if (
IS_ERR(dev)
) {
pr_warn("Cannot register test device\n");
return 1;
}