]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390/cio: idset.c: remove some unused functions
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 20 Dec 2014 12:27:49 +0000 (13:27 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 8 Jan 2015 09:02:50 +0000 (10:02 +0100)
Removes some functions that are not used anywhere:
idset_clear() idset_sch_get_first()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/idset.c
drivers/s390/cio/idset.h

index 5a999084a229545cdda97c9b9bc6980acf45ea76..b3e06a7b9480f385b1bbd952d30f7d525afc5436 100644 (file)
@@ -38,11 +38,6 @@ void idset_free(struct idset *set)
        vfree(set);
 }
 
-void idset_clear(struct idset *set)
-{
-       memset(set->bitmap, 0, bitmap_size(set->num_ssid, set->num_id));
-}
-
 void idset_fill(struct idset *set)
 {
        memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id));
@@ -103,21 +98,6 @@ int idset_sch_contains(struct idset *set, struct subchannel_id schid)
        return idset_contains(set, schid.ssid, schid.sch_no);
 }
 
-int idset_sch_get_first(struct idset *set, struct subchannel_id *schid)
-{
-       int ssid = 0;
-       int id = 0;
-       int rc;
-
-       rc = idset_get_first(set, &ssid, &id);
-       if (rc) {
-               init_subchannel_id(schid);
-               schid->ssid = ssid;
-               schid->sch_no = id;
-       }
-       return rc;
-}
-
 int idset_is_empty(struct idset *set)
 {
        return bitmap_empty(set->bitmap, set->num_ssid * set->num_id);
index 06d3bc01bb0934a52198349da2657e8787c46c13..22b58104683be867f0f416940001b0fe1e36f8ca 100644 (file)
@@ -11,7 +11,6 @@
 struct idset;
 
 void idset_free(struct idset *set);
-void idset_clear(struct idset *set);
 void idset_fill(struct idset *set);
 
 struct idset *idset_sch_new(void);
@@ -19,7 +18,6 @@ void idset_sch_add(struct idset *set, struct subchannel_id id);
 void idset_sch_del(struct idset *set, struct subchannel_id id);
 void idset_sch_del_subseq(struct idset *set, struct subchannel_id schid);
 int idset_sch_contains(struct idset *set, struct subchannel_id id);
-int idset_sch_get_first(struct idset *set, struct subchannel_id *id);
 int idset_is_empty(struct idset *set);
 void idset_add_set(struct idset *to, struct idset *from);