diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-12-20 07:27:49 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-01-08 04:02:50 -0500 |
commit | 8ebd51a705c56520481f2b813790dc5afdb0a751 (patch) | |
tree | 18ea9ddada7607f8ce8fb96af33c8e8b89e78862 /drivers/s390 | |
parent | e0a50545480de0936ab867168d9bd086e56f465c (diff) |
s390/cio: idset.c: remove some unused functions
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/idset.c | 20 | ||||
-rw-r--r-- | drivers/s390/cio/idset.h | 2 |
2 files changed, 0 insertions, 22 deletions
diff --git a/drivers/s390/cio/idset.c b/drivers/s390/cio/idset.c index 5a999084a229..b3e06a7b9480 100644 --- a/drivers/s390/cio/idset.c +++ b/drivers/s390/cio/idset.c | |||
@@ -38,11 +38,6 @@ void idset_free(struct idset *set) | |||
38 | vfree(set); | 38 | vfree(set); |
39 | } | 39 | } |
40 | 40 | ||
41 | void idset_clear(struct idset *set) | ||
42 | { | ||
43 | memset(set->bitmap, 0, bitmap_size(set->num_ssid, set->num_id)); | ||
44 | } | ||
45 | |||
46 | void idset_fill(struct idset *set) | 41 | void idset_fill(struct idset *set) |
47 | { | 42 | { |
48 | memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); | 43 | 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) | |||
103 | return idset_contains(set, schid.ssid, schid.sch_no); | 98 | return idset_contains(set, schid.ssid, schid.sch_no); |
104 | } | 99 | } |
105 | 100 | ||
106 | int idset_sch_get_first(struct idset *set, struct subchannel_id *schid) | ||
107 | { | ||
108 | int ssid = 0; | ||
109 | int id = 0; | ||
110 | int rc; | ||
111 | |||
112 | rc = idset_get_first(set, &ssid, &id); | ||
113 | if (rc) { | ||
114 | init_subchannel_id(schid); | ||
115 | schid->ssid = ssid; | ||
116 | schid->sch_no = id; | ||
117 | } | ||
118 | return rc; | ||
119 | } | ||
120 | |||
121 | int idset_is_empty(struct idset *set) | 101 | int idset_is_empty(struct idset *set) |
122 | { | 102 | { |
123 | return bitmap_empty(set->bitmap, set->num_ssid * set->num_id); | 103 | return bitmap_empty(set->bitmap, set->num_ssid * set->num_id); |
diff --git a/drivers/s390/cio/idset.h b/drivers/s390/cio/idset.h index 06d3bc01bb09..22b58104683b 100644 --- a/drivers/s390/cio/idset.h +++ b/drivers/s390/cio/idset.h | |||
@@ -11,7 +11,6 @@ | |||
11 | struct idset; | 11 | struct idset; |
12 | 12 | ||
13 | void idset_free(struct idset *set); | 13 | void idset_free(struct idset *set); |
14 | void idset_clear(struct idset *set); | ||
15 | void idset_fill(struct idset *set); | 14 | void idset_fill(struct idset *set); |
16 | 15 | ||
17 | struct idset *idset_sch_new(void); | 16 | struct idset *idset_sch_new(void); |
@@ -19,7 +18,6 @@ void idset_sch_add(struct idset *set, struct subchannel_id id); | |||
19 | void idset_sch_del(struct idset *set, struct subchannel_id id); | 18 | void idset_sch_del(struct idset *set, struct subchannel_id id); |
20 | void idset_sch_del_subseq(struct idset *set, struct subchannel_id schid); | 19 | void idset_sch_del_subseq(struct idset *set, struct subchannel_id schid); |
21 | int idset_sch_contains(struct idset *set, struct subchannel_id id); | 20 | int idset_sch_contains(struct idset *set, struct subchannel_id id); |
22 | int idset_sch_get_first(struct idset *set, struct subchannel_id *id); | ||
23 | int idset_is_empty(struct idset *set); | 21 | int idset_is_empty(struct idset *set); |
24 | void idset_add_set(struct idset *to, struct idset *from); | 22 | void idset_add_set(struct idset *to, struct idset *from); |
25 | 23 | ||