mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Merge from CheriBSD (2e28d2a3090239b30481f35dc452ad95a5c57389)
Remove initalized, but unused devname variable MFC after: 1 week Sponsored by: DARPA, AFRL
This commit is contained in:
parent
85c9dd9d89
commit
9d88fc7ce3
1 changed files with 0 additions and 13 deletions
|
|
@ -321,7 +321,6 @@ altera_avgen_attach(struct altera_avgen_softc *sc, const char *str_fileio,
|
|||
const char *str_mmapio, const char *str_devname, int devunit)
|
||||
{
|
||||
device_t dev = sc->avg_dev;
|
||||
char devname[SPECNAMELEN + 1];
|
||||
int error;
|
||||
|
||||
error = altera_avgen_process_options(sc, str_fileio, str_mmapio,
|
||||
|
|
@ -329,18 +328,6 @@ altera_avgen_attach(struct altera_avgen_softc *sc, const char *str_fileio,
|
|||
if (error)
|
||||
return (error);
|
||||
|
||||
/* Select a device name. */
|
||||
if (str_devname != NULL) {
|
||||
if (devunit != -1)
|
||||
(void)snprintf(devname, sizeof(devname), "%s%d",
|
||||
str_devname, devunit);
|
||||
else
|
||||
(void)snprintf(devname, sizeof(devname), "%s",
|
||||
str_devname);
|
||||
} else
|
||||
snprintf(devname, sizeof(devname), "%s%d", "avgen",
|
||||
sc->avg_unit);
|
||||
|
||||
if (rman_get_size(sc->avg_res) >= PAGE_SIZE || str_mmapio != NULL) {
|
||||
if (rman_get_size(sc->avg_res) % PAGE_SIZE != 0) {
|
||||
device_printf(dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue