mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
s390/appldata: Remove unused appldata_sysctl_header variable
allmodconfig with clang W=1 points out an unused global variable: arch/s390/appldata/appldata_base.c:54:33: error: variable 'appldata_sysctl_header' set but not used [-Werror,-Wunused-but-set-global] Just remove the variable. There is no point in adding error handling for a failing register_sysctl() call. Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
parent
44e5edace5
commit
e648e004e4
|
|
@ -51,7 +51,6 @@ static int appldata_timer_handler(const struct ctl_table *ctl, int write,
|
|||
static int appldata_interval_handler(const struct ctl_table *ctl, int write,
|
||||
void *buffer, size_t *lenp, loff_t *ppos);
|
||||
|
||||
static struct ctl_table_header *appldata_sysctl_header;
|
||||
static const struct ctl_table appldata_table[] = {
|
||||
{
|
||||
.procname = "timer",
|
||||
|
|
@ -406,7 +405,7 @@ static int __init appldata_init(void)
|
|||
appldata_wq = alloc_ordered_workqueue("appldata", 0);
|
||||
if (!appldata_wq)
|
||||
return -ENOMEM;
|
||||
appldata_sysctl_header = register_sysctl(appldata_proc_name, appldata_table);
|
||||
register_sysctl(appldata_proc_name, appldata_table);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user