clang-format
This commit is contained in:
@@ -34,29 +34,28 @@
|
||||
#include "autoconf.h"
|
||||
|
||||
/* Lowest revision we support */
|
||||
#define LOW_VERSION 1
|
||||
#define LOW_VERSION 1
|
||||
|
||||
struct lrandom_softc *
|
||||
attach_lrandom_to_lamebus(int lrandomno, struct lamebus_softc *sc)
|
||||
{
|
||||
struct lrandom_softc *lr;
|
||||
int slot = lamebus_probe(sc, LB_VENDOR_CS161, LBCS161_RANDOM,
|
||||
LOW_VERSION, NULL);
|
||||
if (slot < 0) {
|
||||
return NULL;
|
||||
}
|
||||
struct lrandom_softc *attach_lrandom_to_lamebus(int lrandomno,
|
||||
struct lamebus_softc *sc) {
|
||||
struct lrandom_softc *lr;
|
||||
int slot =
|
||||
lamebus_probe(sc, LB_VENDOR_CS161, LBCS161_RANDOM, LOW_VERSION, NULL);
|
||||
if (slot < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
lr = kmalloc(sizeof(struct lrandom_softc));
|
||||
if (lr==NULL) {
|
||||
return NULL;
|
||||
}
|
||||
lr = kmalloc(sizeof(struct lrandom_softc));
|
||||
if (lr == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
(void)lrandomno; // unused
|
||||
(void)lrandomno; // unused
|
||||
|
||||
lr->lr_bus = sc;
|
||||
lr->lr_buspos = slot;
|
||||
lr->lr_bus = sc;
|
||||
lr->lr_buspos = slot;
|
||||
|
||||
lamebus_mark(sc, slot);
|
||||
lamebus_mark(sc, slot);
|
||||
|
||||
return lr;
|
||||
return lr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user