projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50f23b
)
media: radio-wl1273: Remove an unnecessary ternary operator
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Fri, 4 Aug 2023 06:55:22 +0000
(14:55 +0800)
committer
Hans Verkuil
<hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:55 +0000
(09:39 +0200)
There is a ternary operator, the true or false judgement of which
is unnecessary in C language semantics.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/radio/radio-wl1273.c
patch
|
blob
|
history
diff --git
a/drivers/media/radio/radio-wl1273.c
b/drivers/media/radio/radio-wl1273.c
index e8166eac9efe8da2208e47875e1d89d0543d2040..f6b98c304b72c9c9d8dd61a6c855b161a1fb9f35 100644
(file)
--- a/
drivers/media/radio/radio-wl1273.c
+++ b/
drivers/media/radio/radio-wl1273.c
@@
-1020,7
+1020,7
@@
static int wl1273_fm_set_rds(struct wl1273_device *radio, unsigned int new_mode)
}
if (!r)
- radio->rds_on =
(new_mode == WL1273_RDS_ON) ? true : false
;
+ radio->rds_on =
new_mode == WL1273_RDS_ON
;
return r;
}