diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-09-03 08:27:19 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-09-11 08:45:32 +0200 |
commit | 65a24d4c2712182a3ca450cf9f019ee5ab332533 (patch) | |
tree | 9a6be25a2ed22dcb1bc407df9b01a0b97ec3d548 /drivers/bluetooth | |
parent | 0e9952804ec9c8ba60f131225eab80634339f042 (diff) |
Bluetooth: hci_qca: remove redundant null check
Because clk_disable_unprepare already checked
NULL clock parameter, so the additional check is
unnecessary, just remove it.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_qca.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 20e1dedbc58c..6577356d849b 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -2007,8 +2007,7 @@ static int qca_serdev_probe(struct serdev_device *serdev) err = hci_uart_register_device(&qcadev->serdev_hu, &qca_proto); if (err) { BT_ERR("Rome serdev registration failed"); - if (qcadev->susclk) - clk_disable_unprepare(qcadev->susclk); + clk_disable_unprepare(qcadev->susclk); return err; } } |