]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pcmcia: make pcmcia_release_io() void, as no-one is interested in return value
authorDominik Brodowski <linux@dominikbrodowski.net>
Sun, 2 Jan 2022 17:48:58 +0000 (18:48 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sun, 2 Jan 2022 18:01:37 +0000 (19:01 +0100)
As the only user of pcmcia_release_io() is not interested in its return
value, and we cannot do anything on failure, convert the function to return
void.

Reported-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/pcmcia_resource.c

index c1c197292111452de7dbf0e69926ea248a85e3fb..d78091e79a0f6f0b11facb37657298686688e5a2 100644 (file)
@@ -390,10 +390,9 @@ int pcmcia_release_configuration(struct pcmcia_device *p_dev)
  * "stale", we don't bother checking the port ranges against the
  * current socket values.
  */
-static int pcmcia_release_io(struct pcmcia_device *p_dev)
+static void pcmcia_release_io(struct pcmcia_device *p_dev)
 {
        struct pcmcia_socket *s = p_dev->socket;
-       int ret = -EINVAL;
        config_t *c;
 
        mutex_lock(&s->ops_mutex);
@@ -412,8 +411,6 @@ static int pcmcia_release_io(struct pcmcia_device *p_dev)
 
 out:
        mutex_unlock(&s->ops_mutex);
-
-       return ret;
 } /* pcmcia_release_io */