mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] s390/cio: Remove unused inline functionidset_sch_get_first
@ 2020-05-08 14:06 YueHaibing
  2020-05-11  9:05 ` Vineeth Vijayan
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2020-05-08 14:06 UTC (permalink / raw)
  To: vneethv, oberpar, heiko.carstens, gor, borntraeger, gustavo, yuehaibing
  Cc: linux-s390, linux-kernel

commit 8ebd51a705c5 ("s390/cio: idset.c: remove some unused functions")
left behind this, remove it

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/s390/cio/idset.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/s390/cio/idset.c b/drivers/s390/cio/idset.c
index 77d0ea7b381b..45f9c0736be4 100644
--- a/drivers/s390/cio/idset.c
+++ b/drivers/s390/cio/idset.c
@@ -59,18 +59,6 @@ static inline int idset_contains(struct idset *set, int ssid, int id)
 	return test_bit(ssid * set->num_id + id, set->bitmap);
 }
 
-static inline int idset_get_first(struct idset *set, int *ssid, int *id)
-{
-	int bitnum;
-
-	bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id);
-	if (bitnum >= set->num_ssid * set->num_id)
-		return 0;
-	*ssid = bitnum / set->num_id;
-	*id = bitnum % set->num_id;
-	return 1;
-}
-
 struct idset *idset_sch_new(void)
 {
 	return idset_new(max_ssid + 1, __MAX_SUBCHANNEL + 1);
-- 
2.17.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] s390/cio: Remove unused inline functionidset_sch_get_first
  2020-05-08 14:06 [PATCH -next] s390/cio: Remove unused inline functionidset_sch_get_first YueHaibing
@ 2020-05-11  9:05 ` Vineeth Vijayan
  0 siblings, 0 replies; 2+ messages in thread
From: Vineeth Vijayan @ 2020-05-11  9:05 UTC (permalink / raw)
  To: YueHaibing, vneethv, oberpar, heiko.carstens, gor, borntraeger, gustavo
  Cc: linux-s390, linux-kernel

Thank you.
This patch will be part of the s390's next patch submission.

Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>

Regards,
Vineeth


On Fri, 2020-05-08 at 22:06 +0800, YueHaibing wrote:
> commit 8ebd51a705c5 ("s390/cio: idset.c: remove some unused
> functions")
> left behind this, remove it
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  drivers/s390/cio/idset.c | 12 ------------
>  1 file changed, 12 deletions(-)
> 
> diff --git a/drivers/s390/cio/idset.c b/drivers/s390/cio/idset.c
> index 77d0ea7b381b..45f9c0736be4 100644
> --- a/drivers/s390/cio/idset.c
> +++ b/drivers/s390/cio/idset.c
> @@ -59,18 +59,6 @@ static inline int idset_contains(struct idset *set,
> int ssid, int id)
>  	return test_bit(ssid * set->num_id + id, set->bitmap);
>  }
>  
> -static inline int idset_get_first(struct idset *set, int *ssid, int
> *id)
> -{
> -	int bitnum;
> -
> -	bitnum = find_first_bit(set->bitmap, set->num_ssid * set-
> >num_id);
> -	if (bitnum >= set->num_ssid * set->num_id)
> -		return 0;
> -	*ssid = bitnum / set->num_id;
> -	*id = bitnum % set->num_id;
> -	return 1;
> -}
> -
>  struct idset *idset_sch_new(void)
>  {
>  	return idset_new(max_ssid + 1, __MAX_SUBCHANNEL + 1);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-11  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 14:06 [PATCH -next] s390/cio: Remove unused inline functionidset_sch_get_first YueHaibing
2020-05-11  9:05 ` Vineeth Vijayan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®