spi: tegra20-slink: use true and false for boolean values
Subsystems (3)
PATCH 1/1 spi: tegra20-slink: use true and false for boolean values
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/spi/spi-tegra20-slink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-tegra20-slink.c +2 -2
@@ -276,10 +276,10 @@ static unsigned tegra_slink_calculate_curr_xfer_param( tspi->bytes_per_word =DIV_ROUND_UP (bits_per_word,8 );if (bits_per_word ==8 || bits_per_word ==16 ) { - tspi->is_packed =1 ; + tspi->is_packed = true; tspi->words_per_32bit =32 /bits_per_word; }else { - tspi->is_packed =0 ; + tspi->is_packed = false; tspi->words_per_32bit =1 ; } tspi->packed_size =tegra_slink_get_packed_size (tspi, t);
Signature · 1 line
2.7.4
Quoted 6 lines · Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Signed-off-by Gustavo A. R. Silva <[email protected]>
Acked-by Laxman Dewangan <[email protected]>
Quoted 8 lines · Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Signed-off-by Gustavo A. R. Silva <[email protected]>--- drivers/spi/spi-tegra20-slink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Acked-by Thierry Reding <[email protected]>