staging: vchi: Get rid of effect less expression
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Mon, 29 Jun 2020 15:09:19 +0000 (17:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jul 2020 13:47:05 +0000 (15:47 +0200)
It was probably there to trick compilers into ignoring unused variables,
which isn't needed in Linux.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200629150945.10720-22-nsaenzjulienne@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c

index f2998c0ca5b1c5acdd43b3b335b5ae9b910153fb..b4884d0b82cdb94cff1eebd78756056babf5e52e 100644 (file)
@@ -288,8 +288,6 @@ static struct vchi_service *service_alloc(struct vchiq_instance *instance,
 {
        struct vchi_service *service = kzalloc(sizeof(struct vchi_service), GFP_KERNEL);
 
-       (void)instance;
-
        if (service) {
                if (!vchiu_queue_init(&service->queue, 64)) {
                        service->callback = setup->callback;