char:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable...
authorShailendra Verma <shailendra.capricorn@gmail.com>
Tue, 2 Jun 2015 06:40:42 +0000 (08:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Jun 2015 23:58:33 +0000 (16:58 -0700)
The variable dirty is bool type. Hence assign the variable with
bool value true/false instead of 1/0.

Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/xilinx_hwicap/buffer_icap.c

index 05d897764f027489a346774cedc0ded600f28d2c..53c3882e49812803633ac49f6b56c1ba9311e773 100644 (file)
@@ -270,7 +270,7 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data,
        int status;
        s32 buffer_count = 0;
        s32 num_writes = 0;
-       bool dirty = 0;
+       bool dirty = false;
        u32 i;
        void __iomem *base_address = drvdata->base_address;
 
@@ -279,7 +279,7 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data,
 
                /* Copy data to bram */
                buffer_icap_set_bram(base_address, buffer_count, data[i]);
-               dirty = 1;
+               dirty = true;
 
                if (buffer_count < XHI_MAX_BUFFER_INTS - 1) {
                        buffer_count++;
@@ -299,7 +299,7 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data,
 
                buffer_count = 0;
                num_writes++;
-               dirty = 0;
+               dirty = false;
        }
 
        /* Write unwritten data to ICAP */