* [PATCH] xen-netback:Make the function xenvif_schedulable have a return type of bool
@ 2015-06-17 3:03 Nicholas Krause
2015-06-17 11:10 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Krause @ 2015-06-17 3:03 UTC (permalink / raw)
To: ian.campbell; +Cc: xen-devel, wei.liu2, linux-kernel, netdev
This makes the function xenvif_sechedulable have a return type of
bool now due to this particular function's return statement only
ever evaluating to have a value of one or zero.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/net/xen-netback/common.h | 2 +-
drivers/net/xen-netback/interface.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h
index 8a495b3..c02cafb 100644
--- a/drivers/net/xen-netback/common.h
+++ b/drivers/net/xen-netback/common.h
@@ -280,7 +280,7 @@ void xenvif_free(struct xenvif *vif);
int xenvif_xenbus_init(void);
void xenvif_xenbus_fini(void);
-int xenvif_schedulable(struct xenvif *vif);
+bool xenvif_schedulable(struct xenvif *vif);
int xenvif_queue_stopped(struct xenvif_queue *queue);
void xenvif_wake_queue(struct xenvif_queue *queue);
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index 1a83e19..b5fcb52 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -63,7 +63,7 @@ void xenvif_skb_zerocopy_complete(struct xenvif_queue *queue)
atomic_dec(&queue->inflight_packets);
}
-int xenvif_schedulable(struct xenvif *vif)
+bool xenvif_schedulable(struct xenvif *vif)
{
return netif_running(vif->dev) &&
test_bit(VIF_STATUS_CONNECTED, &vif->status) &&
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] xen-netback:Make the function xenvif_schedulable have a return type of bool
2015-06-17 3:03 [PATCH] xen-netback:Make the function xenvif_schedulable have a return type of bool Nicholas Krause
@ 2015-06-17 11:10 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2015-06-17 11:10 UTC (permalink / raw)
To: Nicholas Krause; +Cc: ian.campbell, wei.liu2, xen-devel, netdev, linux-kernel
On Tue, Jun 16, 2015 at 11:03:30PM -0400, Nicholas Krause wrote:
> This makes the function xenvif_sechedulable have a return type of
> bool now due to this particular function's return statement only
> ever evaluating to have a value of one or zero.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
> ---
> drivers/net/xen-netback/common.h | 2 +-
> drivers/net/xen-netback/interface.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h
> index 8a495b3..c02cafb 100644
> --- a/drivers/net/xen-netback/common.h
> +++ b/drivers/net/xen-netback/common.h
> @@ -280,7 +280,7 @@ void xenvif_free(struct xenvif *vif);
> int xenvif_xenbus_init(void);
> void xenvif_xenbus_fini(void);
>
> -int xenvif_schedulable(struct xenvif *vif);
> +bool xenvif_schedulable(struct xenvif *vif);
>
> int xenvif_queue_stopped(struct xenvif_queue *queue);
> void xenvif_wake_queue(struct xenvif_queue *queue);
> diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
> index 1a83e19..b5fcb52 100644
> --- a/drivers/net/xen-netback/interface.c
> +++ b/drivers/net/xen-netback/interface.c
> @@ -63,7 +63,7 @@ void xenvif_skb_zerocopy_complete(struct xenvif_queue *queue)
> atomic_dec(&queue->inflight_packets);
> }
>
> -int xenvif_schedulable(struct xenvif *vif)
> +bool xenvif_schedulable(struct xenvif *vif)
> {
> return netif_running(vif->dev) &&
> test_bit(VIF_STATUS_CONNECTED, &vif->status) &&
> --
> 2.1.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-17 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-17 3:03 [PATCH] xen-netback:Make the function xenvif_schedulable have a return type of bool Nicholas Krause
2015-06-17 11:10 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).