RDS: cleanup: remove "== NULL"s and "!= NULL"s in ptr comparisons
Favor "if (foo)" style over "if (foo != NULL)". Signed-off-by: Andy Grover <andy.grover@oracle.com>
This commit is contained in:
@ -116,7 +116,7 @@ int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes,
|
||||
/* jump straight to allocation if we're trying for a huge page */
|
||||
if (bytes >= PAGE_SIZE) {
|
||||
page = alloc_page(gfp);
|
||||
if (page == NULL) {
|
||||
if (!page) {
|
||||
ret = -ENOMEM;
|
||||
} else {
|
||||
sg_set_page(scat, page, PAGE_SIZE, 0);
|
||||
@ -162,7 +162,7 @@ int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes,
|
||||
rem = &per_cpu(rds_page_remainders, get_cpu());
|
||||
local_irq_save(flags);
|
||||
|
||||
if (page == NULL) {
|
||||
if (!page) {
|
||||
ret = -ENOMEM;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user