mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
dac960: Remove unused variables from DAC960_CreateProcEntries()
The variables 'StatusProcEntry' and 'UserCommandProcEntry' are assigned to once and then never used. This patch gets rid of the variables. While I was there I also fixed the indentation of the function to use tabs rather than spaces for the lines that did not already do so. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d60b9c16d7
commit
d88a440edd
1 changed files with 10 additions and 13 deletions
|
@ -6580,14 +6580,11 @@ static const struct file_operations dac960_user_command_proc_fops = {
|
||||||
|
|
||||||
static void DAC960_CreateProcEntries(DAC960_Controller_T *Controller)
|
static void DAC960_CreateProcEntries(DAC960_Controller_T *Controller)
|
||||||
{
|
{
|
||||||
struct proc_dir_entry *StatusProcEntry;
|
|
||||||
struct proc_dir_entry *ControllerProcEntry;
|
struct proc_dir_entry *ControllerProcEntry;
|
||||||
struct proc_dir_entry *UserCommandProcEntry;
|
|
||||||
|
|
||||||
if (DAC960_ProcDirectoryEntry == NULL) {
|
if (DAC960_ProcDirectoryEntry == NULL) {
|
||||||
DAC960_ProcDirectoryEntry = proc_mkdir("rd", NULL);
|
DAC960_ProcDirectoryEntry = proc_mkdir("rd", NULL);
|
||||||
StatusProcEntry = proc_create("status", 0,
|
proc_create("status", 0, DAC960_ProcDirectoryEntry,
|
||||||
DAC960_ProcDirectoryEntry,
|
|
||||||
&dac960_proc_fops);
|
&dac960_proc_fops);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6596,7 +6593,7 @@ static void DAC960_CreateProcEntries(DAC960_Controller_T *Controller)
|
||||||
DAC960_ProcDirectoryEntry);
|
DAC960_ProcDirectoryEntry);
|
||||||
proc_create_data("initial_status", 0, ControllerProcEntry, &dac960_initial_status_proc_fops, Controller);
|
proc_create_data("initial_status", 0, ControllerProcEntry, &dac960_initial_status_proc_fops, Controller);
|
||||||
proc_create_data("current_status", 0, ControllerProcEntry, &dac960_current_status_proc_fops, Controller);
|
proc_create_data("current_status", 0, ControllerProcEntry, &dac960_current_status_proc_fops, Controller);
|
||||||
UserCommandProcEntry = proc_create_data("user_command", S_IWUSR | S_IRUSR, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
|
proc_create_data("user_command", S_IWUSR | S_IRUSR, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
|
||||||
Controller->ControllerProcEntry = ControllerProcEntry;
|
Controller->ControllerProcEntry = ControllerProcEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue