diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2011-05-23 04:24:25 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-05-23 04:24:28 -0400 |
commit | 7712f83aa904fef0d7d6e5ba7684c3272bddbb19 (patch) | |
tree | 39bf9b46fbe385eb7cb44118be12f6637b83659f /drivers/s390 | |
parent | 66ceed5ad1318863c21710f316942bcefff8081c (diff) |
[S390] get rid of unused variables
Remove trivially unused variables as detected with -Wunused-but-set-variable.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd_alias.c | 4 | ||||
-rw-r--r-- | drivers/s390/block/dasd_eckd.c | 8 | ||||
-rw-r--r-- | drivers/s390/char/raw3270.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/sclp_sdias.c | 3 | ||||
-rw-r--r-- | drivers/s390/char/tape_3590.c | 6 | ||||
-rw-r--r-- | drivers/s390/cio/device_fsm.c | 3 | ||||
-rw-r--r-- | drivers/s390/cio/device_ops.c | 3 |
7 files changed, 0 insertions, 29 deletions
diff --git a/drivers/s390/block/dasd_alias.c b/drivers/s390/block/dasd_alias.c index 2b771f18d1ad..c388eda1e2b1 100644 --- a/drivers/s390/block/dasd_alias.c +++ b/drivers/s390/block/dasd_alias.c | |||
@@ -253,13 +253,11 @@ int dasd_alias_make_device_known_to_lcu(struct dasd_device *device) | |||
253 | */ | 253 | */ |
254 | void dasd_alias_lcu_setup_complete(struct dasd_device *device) | 254 | void dasd_alias_lcu_setup_complete(struct dasd_device *device) |
255 | { | 255 | { |
256 | struct dasd_eckd_private *private; | ||
257 | unsigned long flags; | 256 | unsigned long flags; |
258 | struct alias_server *server; | 257 | struct alias_server *server; |
259 | struct alias_lcu *lcu; | 258 | struct alias_lcu *lcu; |
260 | struct dasd_uid uid; | 259 | struct dasd_uid uid; |
261 | 260 | ||
262 | private = (struct dasd_eckd_private *) device->private; | ||
263 | device->discipline->get_uid(device, &uid); | 261 | device->discipline->get_uid(device, &uid); |
264 | lcu = NULL; | 262 | lcu = NULL; |
265 | spin_lock_irqsave(&aliastree.lock, flags); | 263 | spin_lock_irqsave(&aliastree.lock, flags); |
@@ -279,13 +277,11 @@ void dasd_alias_lcu_setup_complete(struct dasd_device *device) | |||
279 | 277 | ||
280 | void dasd_alias_wait_for_lcu_setup(struct dasd_device *device) | 278 | void dasd_alias_wait_for_lcu_setup(struct dasd_device *device) |
281 | { | 279 | { |
282 | struct dasd_eckd_private *private; | ||
283 | unsigned long flags; | 280 | unsigned long flags; |
284 | struct alias_server *server; | 281 | struct alias_server *server; |
285 | struct alias_lcu *lcu; | 282 | struct alias_lcu *lcu; |
286 | struct dasd_uid uid; | 283 | struct dasd_uid uid; |
287 | 284 | ||
288 | private = (struct dasd_eckd_private *) device->private; | ||
289 | device->discipline->get_uid(device, &uid); | 285 | device->discipline->get_uid(device, &uid); |
290 | lcu = NULL; | 286 | lcu = NULL; |
291 | spin_lock_irqsave(&aliastree.lock, flags); | 287 | spin_lock_irqsave(&aliastree.lock, flags); |
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index 3ebdf5f92f8f..58209434c992 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -1611,10 +1611,8 @@ static void dasd_eckd_analysis_callback(struct dasd_ccw_req *init_cqr, | |||
1611 | 1611 | ||
1612 | static int dasd_eckd_start_analysis(struct dasd_block *block) | 1612 | static int dasd_eckd_start_analysis(struct dasd_block *block) |
1613 | { | 1613 | { |
1614 | struct dasd_eckd_private *private; | ||
1615 | struct dasd_ccw_req *init_cqr; | 1614 | struct dasd_ccw_req *init_cqr; |
1616 | 1615 | ||
1617 | private = (struct dasd_eckd_private *) block->base->private; | ||
1618 | init_cqr = dasd_eckd_analysis_ccw(block->base); | 1616 | init_cqr = dasd_eckd_analysis_ccw(block->base); |
1619 | if (IS_ERR(init_cqr)) | 1617 | if (IS_ERR(init_cqr)) |
1620 | return PTR_ERR(init_cqr); | 1618 | return PTR_ERR(init_cqr); |
@@ -2264,7 +2262,6 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_cmd_track( | |||
2264 | unsigned int blk_per_trk, | 2262 | unsigned int blk_per_trk, |
2265 | unsigned int blksize) | 2263 | unsigned int blksize) |
2266 | { | 2264 | { |
2267 | struct dasd_eckd_private *private; | ||
2268 | unsigned long *idaws; | 2265 | unsigned long *idaws; |
2269 | struct dasd_ccw_req *cqr; | 2266 | struct dasd_ccw_req *cqr; |
2270 | struct ccw1 *ccw; | 2267 | struct ccw1 *ccw; |
@@ -2283,7 +2280,6 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_cmd_track( | |||
2283 | unsigned int recoffs; | 2280 | unsigned int recoffs; |
2284 | 2281 | ||
2285 | basedev = block->base; | 2282 | basedev = block->base; |
2286 | private = (struct dasd_eckd_private *) basedev->private; | ||
2287 | if (rq_data_dir(req) == READ) | 2283 | if (rq_data_dir(req) == READ) |
2288 | cmd = DASD_ECKD_CCW_READ_TRACK_DATA; | 2284 | cmd = DASD_ECKD_CCW_READ_TRACK_DATA; |
2289 | else if (rq_data_dir(req) == WRITE) | 2285 | else if (rq_data_dir(req) == WRITE) |
@@ -2573,7 +2569,6 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track( | |||
2573 | unsigned int blk_per_trk, | 2569 | unsigned int blk_per_trk, |
2574 | unsigned int blksize) | 2570 | unsigned int blksize) |
2575 | { | 2571 | { |
2576 | struct dasd_eckd_private *private; | ||
2577 | struct dasd_ccw_req *cqr; | 2572 | struct dasd_ccw_req *cqr; |
2578 | struct req_iterator iter; | 2573 | struct req_iterator iter; |
2579 | struct bio_vec *bv; | 2574 | struct bio_vec *bv; |
@@ -2594,7 +2589,6 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track( | |||
2594 | unsigned int count, count_to_trk_end; | 2589 | unsigned int count, count_to_trk_end; |
2595 | 2590 | ||
2596 | basedev = block->base; | 2591 | basedev = block->base; |
2597 | private = (struct dasd_eckd_private *) basedev->private; | ||
2598 | if (rq_data_dir(req) == READ) { | 2592 | if (rq_data_dir(req) == READ) { |
2599 | cmd = DASD_ECKD_CCW_READ_TRACK_DATA; | 2593 | cmd = DASD_ECKD_CCW_READ_TRACK_DATA; |
2600 | itcw_op = ITCW_OP_READ; | 2594 | itcw_op = ITCW_OP_READ; |
@@ -2801,7 +2795,6 @@ static struct dasd_ccw_req *dasd_raw_build_cp(struct dasd_device *startdev, | |||
2801 | struct dasd_block *block, | 2795 | struct dasd_block *block, |
2802 | struct request *req) | 2796 | struct request *req) |
2803 | { | 2797 | { |
2804 | struct dasd_eckd_private *private; | ||
2805 | unsigned long *idaws; | 2798 | unsigned long *idaws; |
2806 | struct dasd_device *basedev; | 2799 | struct dasd_device *basedev; |
2807 | struct dasd_ccw_req *cqr; | 2800 | struct dasd_ccw_req *cqr; |
@@ -2836,7 +2829,6 @@ static struct dasd_ccw_req *dasd_raw_build_cp(struct dasd_device *startdev, | |||
2836 | trkcount = last_trk - first_trk + 1; | 2829 | trkcount = last_trk - first_trk + 1; |
2837 | first_offs = 0; | 2830 | first_offs = 0; |
2838 | basedev = block->base; | 2831 | basedev = block->base; |
2839 | private = (struct dasd_eckd_private *) basedev->private; | ||
2840 | 2832 | ||
2841 | if (rq_data_dir(req) == READ) | 2833 | if (rq_data_dir(req) == READ) |
2842 | cmd = DASD_ECKD_CCW_READ_TRACK; | 2834 | cmd = DASD_ECKD_CCW_READ_TRACK; |
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index e21a5c39ef20..810ac38631c3 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -598,7 +598,6 @@ __raw3270_size_device(struct raw3270 *rp) | |||
598 | static const unsigned char wbuf[] = | 598 | static const unsigned char wbuf[] = |
599 | { 0x00, 0x07, 0x01, 0xff, 0x03, 0x00, 0x81 }; | 599 | { 0x00, 0x07, 0x01, 0xff, 0x03, 0x00, 0x81 }; |
600 | struct raw3270_ua *uap; | 600 | struct raw3270_ua *uap; |
601 | unsigned short count; | ||
602 | int rc; | 601 | int rc; |
603 | 602 | ||
604 | /* | 603 | /* |
@@ -653,7 +652,6 @@ __raw3270_size_device(struct raw3270 *rp) | |||
653 | if (rc) | 652 | if (rc) |
654 | return rc; | 653 | return rc; |
655 | /* Got a Query Reply */ | 654 | /* Got a Query Reply */ |
656 | count = sizeof(rp->init_data) - rp->init_request.rescnt; | ||
657 | uap = (struct raw3270_ua *) (rp->init_data + 1); | 655 | uap = (struct raw3270_ua *) (rp->init_data + 1); |
658 | /* Paranoia check. */ | 656 | /* Paranoia check. */ |
659 | if (rp->init_data[0] != 0x88 || uap->uab.qcode != 0x81) | 657 | if (rp->init_data[0] != 0x88 || uap->uab.qcode != 0x81) |
diff --git a/drivers/s390/char/sclp_sdias.c b/drivers/s390/char/sclp_sdias.c index 6a1c58dc61a7..fa733ecd3d70 100644 --- a/drivers/s390/char/sclp_sdias.c +++ b/drivers/s390/char/sclp_sdias.c | |||
@@ -69,9 +69,6 @@ static DEFINE_MUTEX(sdias_mutex); | |||
69 | 69 | ||
70 | static void sdias_callback(struct sclp_req *request, void *data) | 70 | static void sdias_callback(struct sclp_req *request, void *data) |
71 | { | 71 | { |
72 | struct sdias_sccb *cbsccb; | ||
73 | |||
74 | cbsccb = (struct sdias_sccb *) request->sccb; | ||
75 | sclp_req_done = 1; | 72 | sclp_req_done = 1; |
76 | wake_up(&sdias_wq); /* Inform caller, that request is complete */ | 73 | wake_up(&sdias_wq); /* Inform caller, that request is complete */ |
77 | TRACE("callback done\n"); | 74 | TRACE("callback done\n"); |
diff --git a/drivers/s390/char/tape_3590.c b/drivers/s390/char/tape_3590.c index b98dcbd16711..22db2529e1b2 100644 --- a/drivers/s390/char/tape_3590.c +++ b/drivers/s390/char/tape_3590.c | |||
@@ -796,10 +796,8 @@ static void tape_3590_med_state_set(struct tape_device *device, | |||
796 | static int | 796 | static int |
797 | tape_3590_done(struct tape_device *device, struct tape_request *request) | 797 | tape_3590_done(struct tape_device *device, struct tape_request *request) |
798 | { | 798 | { |
799 | struct tape_3590_disc_data *disc_data; | ||
800 | 799 | ||
801 | DBF_EVENT(6, "%s done\n", tape_op_verbose[request->op]); | 800 | DBF_EVENT(6, "%s done\n", tape_op_verbose[request->op]); |
802 | disc_data = device->discdata; | ||
803 | 801 | ||
804 | switch (request->op) { | 802 | switch (request->op) { |
805 | case TO_BSB: | 803 | case TO_BSB: |
@@ -1397,11 +1395,9 @@ static int tape_3590_crypt_error(struct tape_device *device, | |||
1397 | u8 cu_rc, ekm_rc1; | 1395 | u8 cu_rc, ekm_rc1; |
1398 | u16 ekm_rc2; | 1396 | u16 ekm_rc2; |
1399 | u32 drv_rc; | 1397 | u32 drv_rc; |
1400 | const char *bus_id; | ||
1401 | char *sense; | 1398 | char *sense; |
1402 | 1399 | ||
1403 | sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data; | 1400 | sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data; |
1404 | bus_id = dev_name(&device->cdev->dev); | ||
1405 | cu_rc = sense[0]; | 1401 | cu_rc = sense[0]; |
1406 | drv_rc = *((u32*) &sense[5]) & 0xffffff; | 1402 | drv_rc = *((u32*) &sense[5]) & 0xffffff; |
1407 | ekm_rc1 = sense[9]; | 1403 | ekm_rc1 = sense[9]; |
@@ -1429,7 +1425,6 @@ tape_3590_unit_check(struct tape_device *device, struct tape_request *request, | |||
1429 | struct irb *irb) | 1425 | struct irb *irb) |
1430 | { | 1426 | { |
1431 | struct tape_3590_sense *sense; | 1427 | struct tape_3590_sense *sense; |
1432 | int rc; | ||
1433 | 1428 | ||
1434 | #ifdef CONFIG_S390_TAPE_BLOCK | 1429 | #ifdef CONFIG_S390_TAPE_BLOCK |
1435 | if (request->op == TO_BLOCK) { | 1430 | if (request->op == TO_BLOCK) { |
@@ -1454,7 +1449,6 @@ tape_3590_unit_check(struct tape_device *device, struct tape_request *request, | |||
1454 | * - "break": basic error recovery is done | 1449 | * - "break": basic error recovery is done |
1455 | * - "goto out:": just print error message if available | 1450 | * - "goto out:": just print error message if available |
1456 | */ | 1451 | */ |
1457 | rc = -EIO; | ||
1458 | switch (sense->rc_rqc) { | 1452 | switch (sense->rc_rqc) { |
1459 | 1453 | ||
1460 | case 0x1110: | 1454 | case 0x1110: |
diff --git a/drivers/s390/cio/device_fsm.c b/drivers/s390/cio/device_fsm.c index e087a8685f95..52c233fa2b12 100644 --- a/drivers/s390/cio/device_fsm.c +++ b/drivers/s390/cio/device_fsm.c | |||
@@ -841,9 +841,6 @@ call_handler: | |||
841 | static void | 841 | static void |
842 | ccw_device_killing_irq(struct ccw_device *cdev, enum dev_event dev_event) | 842 | ccw_device_killing_irq(struct ccw_device *cdev, enum dev_event dev_event) |
843 | { | 843 | { |
844 | struct subchannel *sch; | ||
845 | |||
846 | sch = to_subchannel(cdev->dev.parent); | ||
847 | ccw_device_set_timeout(cdev, 0); | 844 | ccw_device_set_timeout(cdev, 0); |
848 | /* Start delayed path verification. */ | 845 | /* Start delayed path verification. */ |
849 | ccw_device_online_verify(cdev, 0); | 846 | ccw_device_online_verify(cdev, 0); |
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c index 651976b54af8..f98698d5735e 100644 --- a/drivers/s390/cio/device_ops.c +++ b/drivers/s390/cio/device_ops.c | |||
@@ -418,12 +418,9 @@ int ccw_device_resume(struct ccw_device *cdev) | |||
418 | int | 418 | int |
419 | ccw_device_call_handler(struct ccw_device *cdev) | 419 | ccw_device_call_handler(struct ccw_device *cdev) |
420 | { | 420 | { |
421 | struct subchannel *sch; | ||
422 | unsigned int stctl; | 421 | unsigned int stctl; |
423 | int ending_status; | 422 | int ending_status; |
424 | 423 | ||
425 | sch = to_subchannel(cdev->dev.parent); | ||
426 | |||
427 | /* | 424 | /* |
428 | * we allow for the device action handler if . | 425 | * we allow for the device action handler if . |
429 | * - we received ending status | 426 | * - we received ending status |