Dirk Hohndel 8e330f297e cleanup: fix over-eager Coverity warnings
Technically get_dive() could return a nullptr. The existing code made sure the
argument passed to get_dive() was one that always would result in a valid dive
pointer being returned. The new code is only slightly less efficient but allows
a static code analysis to easily see that we don't derefence NULL pointers here.

On some level this change is unnecessary. But it's also not wrong.

Fixes CID 354762

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-10-25 13:58:03 -07:00
..
2020-04-19 14:27:54 -07:00
2019-08-08 08:56:44 -07:00
2019-08-08 16:26:31 -07:00
2017-04-29 13:32:55 -07:00
2020-10-24 09:51:37 -07:00
2020-10-24 09:51:37 -07:00
2020-09-29 16:13:03 -07:00
2020-10-05 10:17:29 +02:00
2018-10-21 19:55:09 +03:00
2020-03-01 10:21:44 -08:00
2020-10-24 09:51:37 -07:00
2020-10-24 09:51:37 -07:00
2020-04-18 13:41:29 +02:00
2019-12-13 07:04:00 -05:00
2020-10-05 10:17:29 +02:00
2017-04-29 13:32:55 -07:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2020-05-03 15:02:21 -07:00
2019-11-09 19:19:04 +01:00