diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-19 16:10:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-19 16:10:47 +0000 |
commit | 42984a0d09aac6e8d15d18796ec20aca1191ba8e (patch) | |
tree | 87d83c8f3d7646a94a296f2db1f21d7d1225a697 /sys/dev | |
parent | 54662b0dc8cabe3a924a2c64462fa90517c9b658 (diff) |
shorten code
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/cs4280.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/cs4280.c b/sys/dev/pci/cs4280.c index d31f0e60295..1a2c205f9d1 100644 --- a/sys/dev/pci/cs4280.c +++ b/sys/dev/pci/cs4280.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4280.c,v 1.21 2004/12/19 16:06:22 deraadt Exp $ */ +/* $OpenBSD: cs4280.c,v 1.22 2004/12/19 16:10:46 deraadt Exp $ */ /* $NetBSD: cs4280.c,v 1.5 2000/06/26 04:56:23 simonb Exp $ */ /* @@ -877,13 +877,11 @@ int cs4280_download_image(sc) struct cs4280_softc *sc; { - int idx, err; + int idx, err = 0; u_int32_t offset = 0; static u_char *cs4280_firmware; static size_t cs4280_firmwarelen; - err = 0; - if (cs4280_firmware == NULL) { err = loadfirmware("cs4280", &cs4280_firmware, &cs4280_firmwarelen); |