platform/surface: aggregator: Drop unnecessary variable initialization
authorMaximilian Luz <luzmaximilian@gmail.com>
Fri, 4 Jun 2021 21:09:07 +0000 (23:09 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Jun 2021 15:47:54 +0000 (17:47 +0200)
The status variable in ssam_controller_event_disable() is always set, no
need to initialize it.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210604210907.25738-3-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/aggregator/controller.c

index 6343993..b8c377b 100644 (file)
@@ -2464,7 +2464,7 @@ int ssam_controller_event_disable(struct ssam_controller *ctrl,
        u16 rqid = ssh_tc_to_rqid(id.target_category);
        struct ssam_nf *nf = &ctrl->cplt.event.notif;
        struct ssam_nf_refcount_entry *entry;
-       int status = 0;
+       int status;
 
        if (!ssh_rqid_is_event(rqid))
                return -EINVAL;