Lars-Peter Clausen
a4a1a78e3b
i2c: cadence: Remove redundant expression in if clause
...
In the mrecv() function the Cadence I2C driver has the following expression
in an if clause.
((id->p_msg->flags & I2C_M_RECV_LEN) != I2C_M_RECV_LEN) &&
(id->recv_count <= CDNS_I2C_FIFO_DEPTH))
Earlier in the same function when I2C_M_RECV_LEN is set the recv_count is
initialized to a value that is larger than CDNS_I2C_FIFO_DEPTH. This means
if the first expression is false the second expression is also false.
Checking the first expression is thus redundant and can be removed.
This slightly simplifies the logic.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2023-01-20 09:55:52 +01:00
..
2020-07-04 08:25:13 +02:00
2021-07-02 09:14:46 +02:00
2021-05-27 21:29:26 +02:00
2022-08-11 23:02:51 +02:00
2021-04-15 22:24:11 +02:00
2022-11-01 13:41:22 +01:00
2022-09-19 18:34:42 +02:00
2022-11-01 13:41:22 +01:00
2022-10-05 21:06:46 +02:00
2021-08-11 15:54:01 +02:00
2022-05-14 15:41:16 +02:00
2020-11-03 21:34:40 +01:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2022-02-23 14:14:15 +01:00
2022-06-10 14:51:35 +02:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2023-01-20 09:55:52 +01:00
2022-08-11 23:02:51 +02:00
2022-02-15 10:04:53 +01:00
2022-02-15 10:04:53 +01:00
2022-08-11 23:02:51 +02:00
2021-06-20 23:13:34 +02:00
2020-09-27 15:14:16 +02:00
2022-08-11 23:02:51 +02:00
2022-10-02 00:46:42 +02:00
2022-08-20 08:29:04 +02:00
2022-02-11 15:38:23 +01:00
2023-01-09 13:03:46 +01:00
2023-01-09 13:03:46 +01:00
2022-11-12 07:38:11 +01:00
2022-10-02 00:43:11 +02:00
2022-06-13 16:50:27 +02:00
2022-11-12 07:38:11 +01:00
2022-08-11 23:02:51 +02:00
2020-03-24 22:36:59 +01:00
2022-08-11 23:02:51 +02:00
2021-02-22 09:02:24 -08:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2020-07-24 21:31:33 +02:00
2022-12-05 10:28:46 +01:00
2022-08-11 23:02:51 +02:00
2022-12-07 21:03:26 +01:00
2022-08-11 23:02:51 +02:00
2022-11-01 13:46:30 +01:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2021-04-14 09:49:06 +02:00
2022-08-30 12:07:06 +02:00
2022-12-15 14:47:10 -08:00
2021-08-19 19:18:17 +02:00
2019-07-15 21:10:39 -07:00
2022-12-07 21:27:08 +01:00
2021-04-30 13:01:02 -07:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2022-10-05 20:52:14 +02:00
2022-08-11 23:02:51 +02:00
2022-08-11 14:28:56 +02:00
2022-10-21 07:59:35 +02:00
2022-10-20 23:09:10 +02:00
2022-06-22 12:51:49 +10:00
2022-11-01 13:41:28 +01:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2021-05-27 21:27:48 +02:00
2022-12-15 14:47:10 -08:00
2022-08-11 23:02:51 +02:00
2021-05-27 21:33:41 +02:00
2021-01-17 12:26:55 +01:00
2020-04-15 12:09:09 +02:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2020-12-09 21:23:21 +01:00
2022-08-11 23:02:51 +02:00
2022-11-12 21:30:16 +01:00
2022-11-12 21:30:16 +01:00
2022-02-15 10:28:34 +01:00
2022-11-12 21:30:16 +01:00
2021-01-26 07:42:27 +01:00
2020-12-02 21:29:31 +01:00
2022-11-01 13:09:33 +01:00
2021-05-27 21:34:08 +02:00
2022-05-04 22:32:45 +02:00
2022-12-05 11:00:34 +01:00
2022-08-11 23:02:51 +02:00
2023-01-09 12:57:07 +01:00
2023-01-09 16:21:28 +01:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2022-09-17 20:35:34 +02:00
2022-09-16 20:27:30 +01:00
2021-06-24 22:08:00 +02:00
2022-07-22 18:46:41 +02:00
2022-08-11 23:02:51 +02:00
2022-09-16 20:44:08 +01:00
2021-04-17 22:00:58 +02:00
2022-08-11 23:02:51 +02:00
2020-07-04 08:25:13 +02:00
2022-08-11 23:02:51 +02:00
2022-10-20 23:09:10 +02:00
2021-04-14 09:49:20 +02:00
2021-05-27 21:39:35 +02:00
2020-09-21 11:45:43 +02:00
2019-08-14 14:56:54 +02:00
2021-05-27 21:39:57 +02:00
2022-07-16 14:24:41 +02:00
2021-08-17 21:37:40 +02:00
2021-08-17 21:41:32 +02:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2022-12-15 14:47:10 -08:00
2022-05-21 13:41:28 +02:00
2020-01-06 15:40:43 +01:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2022-08-11 23:02:51 +02:00
2020-07-23 22:04:08 +02:00
2022-01-14 18:50:52 -05:00
2022-08-11 23:02:51 +02:00
2021-11-06 22:09:37 +01:00
2022-12-07 21:04:40 +01:00
2021-11-23 10:00:12 +01:00
2022-11-02 21:23:15 +01:00
2022-09-28 22:02:17 +02:00
2020-07-23 22:04:08 +02:00