Skip to content

Commit 6d07cc2

Browse files
Joelgranadosmcgrof
authored andcommitted
infiniband: Remove the now superfluous sentinel element from ctl_table array
This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) Remove sentinel from iwcm_ctl_table and ucma_ctl_table Signed-off-by: Joel Granados <j.granados@samsung.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent 3c2461f commit 6d07cc2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/infiniband/core/iwcm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ static struct ctl_table iwcm_ctl_table[] = {
111111
.mode = 0644,
112112
.proc_handler = proc_dointvec,
113113
},
114-
{ }
115114
};
116115

117116
/*

drivers/infiniband/core/ucma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ static struct ctl_table ucma_ctl_table[] = {
7171
.mode = 0644,
7272
.proc_handler = proc_dointvec,
7373
},
74-
{ }
7574
};
7675

7776
struct ucma_file {

0 commit comments

Comments
 (0)