Michael Brown
19d3e966d9
[pcnet32] Eliminate redundant register read
...
The value of ( ( x & 0x0c00 ) | 0x0c00 ) is always 0x0c00 regardless
of the value of x, and so the read_csr() is redundant. (There are no
read side effects for this register, according to the datasheet.)
This line of code originated in Linux kernel 2.3.19pre1 as
a->write_csr(ioaddr, 80, a->read_csr(ioaddr, 80) | 0x0c00);
and was modified in kernel 2.3.41pre4 to read
a->write_csr(ioaddr, 80, (a->read_csr(ioaddr, 80) & 0x0C00) | 0x0c00);
In the absence of commit messages, the intention of the code is
unclear. However, the logic resulting in a fixed value of 0x0c00 has
remained unaltered for over 17 years, and can probably be assumed to
have the correct overall result.
Signed-off-by: Michael Brown <mcb30@ipxe.org >
2017-03-23 17:43:13 +02:00
..
2017-03-22 11:52:09 +02:00
2017-03-19 13:30:27 +00:00
2015-03-03 00:08:41 +00:00
2016-06-09 09:36:28 +01:00
2017-03-23 11:40:36 +02:00
2017-03-10 15:44:11 +00:00
2017-03-10 15:44:11 +00:00
2016-03-22 15:14:07 +00:00
2013-08-20 14:38:33 +01:00
2013-08-20 14:37:05 +01:00
2008-06-30 12:26:12 -07:00
2012-03-26 14:43:52 +01:00
2010-04-19 23:43:39 +01:00
2013-01-03 15:18:48 +00:00
2013-04-28 17:13:44 +01:00
2005-03-08 18:53:11 +00:00
2010-04-19 23:43:39 +01:00
2016-03-12 18:06:47 +00:00
2009-05-18 08:33:25 +01:00
2016-01-19 00:01:11 +00:00
2015-12-07 13:16:53 +00:00
2012-07-20 19:55:45 +01:00
2015-03-02 14:17:31 +00:00
2015-03-03 00:08:41 +00:00
2012-07-20 19:55:45 +01:00
2016-05-26 12:52:06 +01:00
2016-05-26 12:52:06 +01:00
2012-07-20 19:55:45 +01:00
2012-07-20 19:55:45 +01:00
2007-03-13 23:03:50 +00:00
2013-04-28 17:13:44 +01:00
2009-05-26 11:30:31 +01:00
2013-01-03 15:18:48 +00:00
2013-03-25 22:23:04 +00:00
2008-03-18 22:31:26 -04:00
2015-03-02 21:37:45 +00:00
2012-03-26 14:43:52 +01:00
2016-01-19 00:01:11 +00:00
2015-03-10 00:12:39 +00:00
2015-03-03 00:08:41 +00:00
2016-01-19 00:01:11 +00:00
2015-03-02 14:17:31 +00:00
2015-04-15 11:38:10 +01:00
2011-02-17 01:25:12 +00:00
2015-03-02 16:35:37 +00:00
2017-03-22 11:18:02 +02:00
2013-01-03 15:18:48 +00:00
2013-01-03 15:18:48 +00:00
2010-04-19 23:43:39 +01:00
2016-03-22 15:19:25 +00:00
2009-05-18 08:33:25 +01:00
2017-01-26 08:17:37 +00:00
2017-03-10 15:44:11 +00:00
2013-03-27 15:16:52 +00:00
2017-03-09 13:56:22 +00:00
2017-03-09 13:56:22 +00:00
2016-07-14 13:51:07 +01:00
2016-07-12 09:14:41 +01:00
2015-05-16 14:54:31 +01:00
2016-07-12 09:14:41 +01:00
2017-03-09 13:56:22 +00:00
2017-03-09 13:56:22 +00:00
2017-03-22 11:18:02 +02:00
2012-07-20 19:55:45 +01:00
2012-07-20 19:55:45 +01:00
2015-03-02 14:17:31 +00:00
2015-03-10 21:31:07 +00:00
2012-07-20 19:55:45 +01:00
2013-01-03 15:18:48 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2014-07-16 15:54:49 +01:00
2012-04-27 01:22:02 +01:00
2016-01-19 00:01:11 +00:00
2015-09-14 22:45:56 +01:00
2010-04-19 23:43:39 +01:00
2008-06-30 12:26:12 -07:00
2015-04-24 14:41:32 +01:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2013-04-28 17:13:44 +01:00
2009-05-18 08:33:25 +01:00
2013-03-27 15:16:52 +00:00
2017-03-23 17:43:13 +02:00
2017-03-10 15:44:11 +00:00
2009-05-18 08:33:25 +01:00
2015-02-26 17:59:53 +00:00
2015-04-15 11:38:10 +01:00
2015-03-03 00:08:41 +00:00
2015-02-26 17:59:53 +00:00
2015-04-21 17:42:36 +01:00
2015-03-02 14:17:31 +00:00
2013-07-14 18:09:01 +02:00
2013-07-14 18:09:01 +02:00
2017-03-22 16:12:56 +02:00
2016-05-04 16:01:32 +01:00
2017-03-21 13:55:04 +02:00
2009-05-18 08:33:25 +01:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2016-05-04 16:01:32 +01:00
2017-03-10 15:44:11 +00:00
2013-01-03 15:18:48 +00:00
2013-01-03 15:18:48 +00:00
2014-08-19 14:38:27 +01:00
2014-08-19 14:38:27 +01:00
2016-06-20 14:26:37 +01:00
2016-06-20 14:26:37 +01:00
2016-01-19 00:23:06 +00:00
2016-01-18 21:46:09 +00:00
2015-03-03 00:08:41 +00:00
2017-02-07 12:05:00 +00:00
2016-06-13 18:41:26 +01:00
2016-06-22 12:07:55 +01:00
2017-03-22 15:28:58 +02:00
2012-07-20 19:55:45 +01:00
2013-04-28 17:13:44 +01:00
2007-06-09 15:23:17 -04:00
2013-07-15 11:25:51 +02:00
2013-07-15 11:25:51 +02:00
2017-01-23 16:32:54 +00:00
2017-01-23 16:32:54 +00:00
2015-09-16 11:10:30 +01:00
2015-09-16 11:10:30 +01:00
2017-03-22 15:59:27 +02:00
2008-06-30 12:26:12 -07:00
2013-03-27 15:16:52 +00:00