Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

char:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable in function buffer_icap_set_configuration().

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>

authored by

Shailendra Verma and committed by
Greg Kroah-Hartman
03cb0503 294409d2

+3 -3
+3 -3
drivers/char/xilinx_hwicap/buffer_icap.c
··· 270 270 int status; 271 271 s32 buffer_count = 0; 272 272 s32 num_writes = 0; 273 - bool dirty = 0; 273 + bool dirty = false; 274 274 u32 i; 275 275 void __iomem *base_address = drvdata->base_address; 276 276 ··· 279 279 280 280 /* Copy data to bram */ 281 281 buffer_icap_set_bram(base_address, buffer_count, data[i]); 282 - dirty = 1; 282 + dirty = true; 283 283 284 284 if (buffer_count < XHI_MAX_BUFFER_INTS - 1) { 285 285 buffer_count++; ··· 299 299 300 300 buffer_count = 0; 301 301 num_writes++; 302 - dirty = 0; 302 + dirty = false; 303 303 } 304 304 305 305 /* Write unwritten data to ICAP */