clang-format
This commit is contained in:
@@ -38,18 +38,16 @@
|
||||
#include <lamebus/ltimer.h>
|
||||
#include "autoconf.h"
|
||||
|
||||
struct beep_softc *
|
||||
attach_beep_to_ltimer(int beepno, struct ltimer_softc *ls)
|
||||
{
|
||||
struct beep_softc *bs = kmalloc(sizeof(struct beep_softc));
|
||||
if (bs==NULL) {
|
||||
return NULL;
|
||||
}
|
||||
struct beep_softc *attach_beep_to_ltimer(int beepno, struct ltimer_softc *ls) {
|
||||
struct beep_softc *bs = kmalloc(sizeof(struct beep_softc));
|
||||
if (bs == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
(void)beepno; // unused
|
||||
(void)beepno; // unused
|
||||
|
||||
bs->bs_devdata = ls;
|
||||
bs->bs_beep = ltimer_beep;
|
||||
bs->bs_devdata = ls;
|
||||
bs->bs_beep = ltimer_beep;
|
||||
|
||||
return bs;
|
||||
return bs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user