s390/vfio_ccw: remove unused variable
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 26 Jun 2017 17:47:16 +0000 (19:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 5 Jul 2017 05:35:29 +0000 (07:35 +0200)
Fix this set but not used warning:

drivers/s390/cio/vfio_ccw_drv.c: In function 'vfio_ccw_sch_io_todo':
drivers/s390/cio/vfio_ccw_drv.c:72:21: warning: variable 'sch' set but not used [-Wunused-but-set-variable]
  struct subchannel *sch;
                     ^

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/vfio_ccw_drv.c

index a25367ebaa89595971f859e56f4142434e12e4e7..82f05c4b8c526f73a52aed819eacb33cdfd18e3a 100644 (file)
@@ -69,12 +69,10 @@ out_unlock:
 static void vfio_ccw_sch_io_todo(struct work_struct *work)
 {
        struct vfio_ccw_private *private;
-       struct subchannel *sch;
        struct irb *irb;
 
        private = container_of(work, struct vfio_ccw_private, io_work);
        irb = &private->irb;
-       sch = private->sch;
 
        if (scsw_is_solicited(&irb->scsw)) {
                cp_update_scsw(&private->cp, &irb->scsw);