diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:17:16 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:16:46 -0400 |
commit | 246ccea184423ccdec3be1ca3d400cc3c547404d (patch) | |
tree | ca81c9592dadeed4f6152e89f0fd227c4c8eadf1 | |
parent | 3c52e49d7c81434e3d2ccb520b3a654c2cc7d03d (diff) |
[S390] sparse: fix sparse NULL pointer warnings
Fix two NULL pointer warnings in the dasd driver:
drivers/s390/block/dasd_eckd.c:2353:20: warning: Using plain integer as NULL pointer
drivers/s390/block/dasd_eckd.c:2415:44: warning: Using plain integer as NULL pointer
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/block/dasd_eckd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index cca25096efce..6ab29680586a 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -2386,7 +2386,7 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_cmd_track( | |||
2386 | new_track = 1; | 2386 | new_track = 1; |
2387 | end_idaw = 0; | 2387 | end_idaw = 0; |
2388 | len_to_track_end = 0; | 2388 | len_to_track_end = 0; |
2389 | idaw_dst = 0; | 2389 | idaw_dst = NULL; |
2390 | idaw_len = 0; | 2390 | idaw_len = 0; |
2391 | rq_for_each_segment(bv, req, iter) { | 2391 | rq_for_each_segment(bv, req, iter) { |
2392 | dst = page_address(bv->bv_page) + bv->bv_offset; | 2392 | dst = page_address(bv->bv_page) + bv->bv_offset; |
@@ -2448,7 +2448,7 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_cmd_track( | |||
2448 | if (end_idaw) { | 2448 | if (end_idaw) { |
2449 | idaws = idal_create_words(idaws, idaw_dst, | 2449 | idaws = idal_create_words(idaws, idaw_dst, |
2450 | idaw_len); | 2450 | idaw_len); |
2451 | idaw_dst = 0; | 2451 | idaw_dst = NULL; |
2452 | idaw_len = 0; | 2452 | idaw_len = 0; |
2453 | end_idaw = 0; | 2453 | end_idaw = 0; |
2454 | } | 2454 | } |