]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: dev can't be NULL in default_prasedev
authorWarner Losh <imp@FreeBSD.org>
Fri, 13 Jan 2023 22:44:23 +0000 (15:44 -0700)
committerWarner Losh <imp@FreeBSD.org>
Tue, 24 Jan 2023 21:49:47 +0000 (14:49 -0700)
commit3ececb0f35b91948a1122b4df87fc952d31ade8a
tree1dc81d748efc4dac20f8316b0664b55bc6b999be
parentf9ab67f200a4c0e5fabdcd00332eac474848ab3a
stand: dev can't be NULL in default_prasedev

We pass in the address of a variable to store this value always in the
only place that calls this function, so there is no need to test for NULL.

Sponsored by: Netflix
Notied by: tsoome in D38041

(cherry picked from commit 4883f347f6ed9a61f9789a3842077580250ebf44)
stand/libsa/dev.c