diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-03-02 13:56:31 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-03-02 13:56:31 +0000 |
commit | 82a3f0379b42dfa21a27eee13dab68aa9e99d132 (patch) | |
tree | 87fd8378956faad2cb6df3847c99ab1c77b60740 /sys/dev/pci/if_iwm.c | |
parent | 2e0f9211b0fa96a6b1cbb501e9a19b7b81ffd98d (diff) |
init error to 0 in iwm_send_cmd()
ok stsp@ phessler@
Diffstat (limited to 'sys/dev/pci/if_iwm.c')
-rw-r--r-- | sys/dev/pci/if_iwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index cb60bfa19df..ec767a3726f 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.26 2015/03/02 13:53:41 jsg Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.27 2015/03/02 13:56:30 jsg Exp $ */ /* * Copyright (c) 2014 genua mbh <info@genua.de> @@ -3408,7 +3408,7 @@ iwm_send_cmd(struct iwm_softc *sc, struct iwm_host_cmd *hcmd) struct mbuf *m; bus_addr_t paddr; uint32_t addr_lo; - int error, i, paylen, off, s; + int error = 0, i, paylen, off, s; int code; int async, wantresp; |