staging: greybus: Remove unused local variable
authorNathan Chancellor <natechancellor@gmail.com>
Sun, 6 May 2018 06:50:44 +0000 (23:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 02:11:23 +0000 (19:11 -0700)
Fixes the following W=1 warning: variable ‘intf_id’ set but
not used [-Wunused-but-set-variable]

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/svc.c

index a874fed761a1dc199f87e540f3a9bc90ae3beb11..a2bb7e1a3db34890c422ece8ea250664a12e8e3d 100644 (file)
@@ -1137,7 +1137,6 @@ static int gb_svc_intf_reset_recv(struct gb_operation *op)
        struct gb_svc *svc = gb_connection_get_data(op->connection);
        struct gb_message *request = op->request;
        struct gb_svc_intf_reset_request *reset;
-       u8 intf_id;
 
        if (request->payload_size < sizeof(*reset)) {
                dev_warn(&svc->dev, "short reset request received (%zu < %zu)\n",
@@ -1146,8 +1145,6 @@ static int gb_svc_intf_reset_recv(struct gb_operation *op)
        }
        reset = request->payload;
 
-       intf_id = reset->intf_id;
-
        /* FIXME Reset the interface here */
 
        return 0;