Peter Maydell
35b6e94ba5
s390: avoid always-true comparison in s390_pci_generate_fid()
...
Coverity points out that the comparison "fid <= ZPCI_MAX_FID"
in s390_pci_generate_fid() is always true (because fid
is 32 bits and ZPCI_MAX_FID is 0xffffffff). This isn't a
bug because the real loop termination condition is
expressed later via an "if (...) break;" inside the loop,
but it is a bit odd. Rephrase the loop to avoid the
unnecessary duplicate-but-never-true conditional.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2016-10-28 18:17:23 +03:00
..
2016-10-17 14:13:58 +02:00
2016-10-24 17:29:15 -02:00
2016-10-04 13:28:07 +01:00
2016-10-24 15:27:20 +02:00
2016-10-25 10:25:27 +01:00
2016-10-26 14:51:44 +02:00
2016-10-28 18:17:23 +03:00
2016-10-24 15:46:10 +02:00
2016-10-24 15:46:10 +02:00
2016-10-24 16:26:52 +01:00
2016-06-17 16:33:48 +10:00
2016-07-12 16:20:46 +02:00
2016-10-28 18:17:23 +03:00
2016-10-17 19:22:17 +01:00
2016-06-14 15:59:13 +01:00
2016-10-24 16:48:02 +01:00
2016-10-24 17:29:15 -02:00
2016-10-27 16:29:13 -04:00
2016-10-10 02:21:43 +03:00
2016-10-24 17:29:15 -02:00
2016-05-18 15:04:27 +03:00
2016-10-24 15:46:10 +02:00
2016-10-24 15:27:20 +02:00
2016-07-12 16:20:46 +02:00
2016-10-08 11:25:29 +03:00
2016-09-28 19:17:54 +01:00
2016-07-12 16:20:46 +02:00
2016-10-24 15:46:10 +02:00
2016-10-28 18:17:23 +03:00
2016-03-22 22:20:17 +01:00
2016-10-26 09:57:59 +08:00
2016-09-23 11:42:52 +08:00
2016-03-22 22:20:17 +01:00
2016-08-12 10:36:01 +01:00
2016-07-29 00:07:09 +03:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-10-24 17:29:15 -02:00
2016-10-28 18:17:23 +03:00
2016-10-27 16:29:13 -04:00
2016-09-22 18:13:08 +01:00
2016-09-15 15:32:22 +03:00
2016-09-29 11:43:22 +08:00
2016-10-04 10:00:25 +02:00
2016-10-24 15:27:20 +02:00
2016-10-24 15:27:20 +02:00
2016-10-24 16:26:55 +01:00
2016-10-28 18:17:23 +03:00
2016-09-15 15:32:22 +03:00
2016-03-22 22:20:17 +01:00
2016-10-28 18:17:23 +03:00
2016-10-17 10:58:03 -06:00
2016-10-24 15:27:21 +02:00
2016-05-23 16:53:46 +02:00
2016-08-12 16:38:18 -07:00
2016-09-29 11:43:17 +08:00
2016-10-24 15:27:20 +02:00
2016-10-04 13:28:07 +01:00