mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Use the correct macro to test flags; we need KBD_IS_INITIALIZED here,
not KBD_IS_PROBED.
This commit is contained in:
parent
0b919713bb
commit
00f19754a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42626
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: $
|
||||
* $Id: atkbd.c,v 1.1 1999/01/09 02:44:49 yokota Exp $
|
||||
*/
|
||||
|
||||
#include "atkbd.h"
|
||||
@ -375,7 +375,7 @@ atkbd_configure(int flags)
|
||||
|
||||
/* initialize it */
|
||||
kbdc = ((atkbd_state_t *)kbd->kb_data)->kbdc;
|
||||
if (!(flags & KB_CONF_PROBE_ONLY) && !KBD_IS_PROBED(kbd)) {
|
||||
if (!(flags & KB_CONF_PROBE_ONLY) && !KBD_IS_INITIALIZED(kbd)) {
|
||||
if (KBD_HAS_DEVICE(kbd)
|
||||
&& init_keyboard(kbdc, &kbd->kb_type, flags)
|
||||
&& (flags & KB_CONF_FAIL_IF_NO_KBD))
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: $
|
||||
* $Id: atkbd.c,v 1.1 1999/01/09 02:44:49 yokota Exp $
|
||||
*/
|
||||
|
||||
#include "atkbd.h"
|
||||
@ -375,7 +375,7 @@ atkbd_configure(int flags)
|
||||
|
||||
/* initialize it */
|
||||
kbdc = ((atkbd_state_t *)kbd->kb_data)->kbdc;
|
||||
if (!(flags & KB_CONF_PROBE_ONLY) && !KBD_IS_PROBED(kbd)) {
|
||||
if (!(flags & KB_CONF_PROBE_ONLY) && !KBD_IS_INITIALIZED(kbd)) {
|
||||
if (KBD_HAS_DEVICE(kbd)
|
||||
&& init_keyboard(kbdc, &kbd->kb_type, flags)
|
||||
&& (flags & KB_CONF_FAIL_IF_NO_KBD))
|
||||
|
Loading…
Reference in New Issue
Block a user