projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0878c7
)
media: dvb-usb: gp8psk: Remove an unnecessary ternary operator
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Fri, 4 Aug 2023 06:55:23 +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/usb/dvb-usb/gp8psk.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/dvb-usb/gp8psk.c
b/drivers/media/usb/dvb-usb/gp8psk.c
index b2b27a86dfe522ddd566377aff88274d6d11bed8..4cd21bb8805ed78234237141ba5a9f74a41cf159 100644
(file)
--- a/
drivers/media/usb/dvb-usb/gp8psk.c
+++ b/
drivers/media/usb/dvb-usb/gp8psk.c
@@
-287,7
+287,7
@@
static int gp8psk_frontend_attach(struct dvb_usb_adapter *adap)
int id = le16_to_cpu(d->udev->descriptor.idProduct);
int is_rev1;
- is_rev1 =
(id == USB_PID_GENPIX_8PSK_REV_1_WARM) ? true : false
;
+ is_rev1 =
id == USB_PID_GENPIX_8PSK_REV_1_WARM
;
adap->fe_adap[0].fe = dvb_attach(gp8psk_fe_attach,
&gp8psk_fe_ops, d, is_rev1);