[OPW,kernel,5/5] Staging: ft1000: Fix assignment of bool to 0/1
diff mbox

Message ID 6b2721403fe357cdc2318c2a6a7d82a96a5cdbe1.1382714792.git.rashika.kheria@gmail.com
State Changes Requested
Headers show

Commit Message

Rashika Oct. 25, 2013, 3:34 p.m. UTC
This patch fixes the following warning in ft1000-pcmcia/ft1000_dnld.c-

drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c:307:6-18: WARNING: Assignment of bool to 0/1

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lisa Nguyen Oct. 25, 2013, 5:34 p.m. UTC | #1
On Fri, Oct 25, 2013 at 8:34 AM, Rashika Kheria
<rashika.kheria@gmail.com> wrote:
> This patch fixes the following warning in ft1000-pcmcia/ft1000_dnld.c-
>
> drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c:307:6-18: WARNING: Assignment of bool to 0/1
>
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>

> ---
>  drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
> index 6311b2f..d44e858 100644
> --- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
> +++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
> @@ -304,7 +304,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
>         struct dsp_file_hdr *pFileHdr5;
>         struct dsp_image_info *pDspImageInfoV6 = NULL;
>         long requested_version;
> -       bool bGoodVersion = 0;
> +       bool bGoodVersion = false;
>         struct drv_msg *pMailBoxData;
>         u16 *pUsData = NULL;
>         u16 *pUsFile = NULL;
> --
> 1.7.9.5
>
> --
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Patch
diff mbox

diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
index 6311b2f..d44e858 100644
--- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
+++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
@@ -304,7 +304,7 @@  int card_download(struct net_device *dev, const u8 *pFileStart,
 	struct dsp_file_hdr *pFileHdr5;
 	struct dsp_image_info *pDspImageInfoV6 = NULL;
 	long requested_version;
-	bool bGoodVersion = 0;
+	bool bGoodVersion = false;
 	struct drv_msg *pMailBoxData;
 	u16 *pUsData = NULL;
 	u16 *pUsFile = NULL;