2023-07-05 07:12:41

by Minjie Du

[permalink] [raw]
Subject: [PATCH v2] drivers: saa7164: remove duplicate assignments

make second_timeout avoid double assignment.
Thank you for your reply.

Signed-off-by: Minjie Du <[email protected]>
---
drivers/media/pci/saa7164/saa7164-fw.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/media/pci/saa7164/saa7164-fw.c b/drivers/media/pci/saa7164/saa7164-fw.c
index 363689484..cc9f384f7 100644
--- a/drivers/media/pci/saa7164/saa7164-fw.c
+++ b/drivers/media/pci/saa7164/saa7164-fw.c
@@ -271,7 +271,6 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev)
dprintk(DBGLVL_FW, "%s() Loader 1 has loaded.\n",
__func__);
first_timeout = SAA_DEVICE_TIMEOUT;
- second_timeout = 60 * SAA_DEVICE_TIMEOUT;
second_timeout = 100;

err_flags = saa7164_readl(SAA_SECONDSTAGEERROR_FLAGS);
--
2.39.0