aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mpr/mpr_mapping.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 22:07:12 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 22:07:12 +0000
commit577858c836e6bedd9e8c7a3a505590be928f44ee (patch)
treebfeae6e998c74915069867db345ae694fab5fa5b /sys/dev/mpr/mpr_mapping.c
parent742c5f2014b22c7e9f83f5d088a4e3bb0ace4501 (diff)
downloadsrc-577858c836e6bedd9e8c7a3a505590be928f44ee.tar.gz
src-577858c836e6bedd9e8c7a3a505590be928f44ee.zip
mpr: clean up empty lines in .c and .h files
Notes
Notes: svn path=/head/; revision=365204
Diffstat (limited to 'sys/dev/mpr/mpr_mapping.c')
-rw-r--r--sys/dev/mpr/mpr_mapping.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/mpr/mpr_mapping.c b/sys/dev/mpr/mpr_mapping.c
index 47d82063c128..2b83ce49c158 100644
--- a/sys/dev/mpr/mpr_mapping.c
+++ b/sys/dev/mpr/mpr_mapping.c
@@ -501,7 +501,7 @@ _mapping_get_free_ir_mt_idx(struct mpr_softc *sc)
"free entry in the mapping table for a Volume. The mapping "
"table is probably corrupt.\n", __func__);
}
-
+
return high_idx;
}
@@ -562,7 +562,6 @@ _mapping_get_dpm_idx_from_id(struct mpr_softc *sc, u64 id, u32 phy_bits)
return MPR_DPM_BAD_IDX;
}
-
/**
* _mapping_get_free_dpm_idx - get first available DPM index
* @sc: per adapter object
@@ -778,7 +777,7 @@ _mapping_add_to_removal_table(struct mpr_softc *sc, u16 dpm_idx)
for (i = 0; i < sc->max_devices; i++, remove_entry++) {
if (remove_entry->dpm_entry_num != MPR_DPM_BAD_IDX)
continue;
-
+
mpr_dprint(sc, MPR_MAPPING, "%s: Adding DPM entry %d to table "
"for removal.\n", __func__, dpm_idx);
remove_entry->dpm_entry_num = dpm_idx;
@@ -1705,7 +1704,6 @@ _mapping_add_new_device(struct mpr_softc *sc,
} else if ((ioc_pg8_flags &
MPI2_IOCPAGE8_FLAGS_MASK_MAPPING_MODE) ==
MPI2_IOCPAGE8_FLAGS_DEVICE_PERSISTENCE_MAPPING) {
-
/*
* Get the mapping table index for this device. If it's
* not in the mapping table yet, find a free entry if
@@ -1962,7 +1960,6 @@ _mapping_add_new_pcie_device(struct mpr_softc *sc,
} else if ((ioc_pg8_flags &
MPI2_IOCPAGE8_FLAGS_MASK_MAPPING_MODE) ==
MPI2_IOCPAGE8_FLAGS_DEVICE_PERSISTENCE_MAPPING) {
-
/*
* Get the mapping table index for this device. If it's
* not in the mapping table yet, find a free entry if
@@ -2276,7 +2273,6 @@ _mapping_process_dpm_pg0(struct mpr_softc *sc)
}
if ((ioc_pg8_flags & MPI2_IOCPAGE8_FLAGS_MASK_MAPPING_MODE) ==
MPI2_IOCPAGE8_FLAGS_ENCLOSURE_SLOT_MAPPING) {
-
/*
* The dev_idx for an enclosure is the start index. If
* the start index is within the controller's default
@@ -2352,7 +2348,6 @@ _mapping_process_dpm_pg0(struct mpr_softc *sc)
} else if ((ioc_pg8_flags &
MPI2_IOCPAGE8_FLAGS_MASK_MAPPING_MODE) ==
MPI2_IOCPAGE8_FLAGS_DEVICE_PERSISTENCE_MAPPING) {
-
/*
* Device mapping, so simply copy the DPM entries to the
* mapping table, but check for a corrupt mapping table
@@ -2579,7 +2574,7 @@ mpr_mapping_initialize(struct mpr_softc *sc)
mpr_dprint(sc, MPR_MAPPING, "%s: Mapping table has a max of %d entries "
"and DPM has a max of %d entries.\n", __func__, sc->max_devices,
sc->max_dpm_entries);
-
+
if (ioc_pg8_flags & MPI2_IOCPAGE8_FLAGS_DISABLE_PERSISTENT_MAPPING)
sc->is_dpm_enable = 0;