Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6a0d23ed
Commit
6a0d23ed
authored
Apr 11, 2018
by
Corey Minyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipmi: ipmi_unregister_smi() cannot fail, have it return void
Signed-off-by:
Corey Minyard
<
cminyard@mvista.com
>
parent
e56710d2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
11 deletions
+4
-11
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_msghandler.c
+1
-3
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_si_intf.c
+1
-4
drivers/char/ipmi/ipmi_ssif.c
drivers/char/ipmi/ipmi_ssif.c
+1
-3
include/linux/ipmi_smi.h
include/linux/ipmi_smi.h
+1
-1
No files found.
drivers/char/ipmi/ipmi_msghandler.c
View file @
6a0d23ed
...
...
@@ -3711,7 +3711,7 @@ static void cleanup_smi_msgs(struct ipmi_smi *intf)
}
}
int
ipmi_unregister_smi
(
struct
ipmi_smi
*
intf
)
void
ipmi_unregister_smi
(
struct
ipmi_smi
*
intf
)
{
struct
ipmi_smi_watcher
*
w
;
int
intf_num
=
intf
->
intf_num
,
index
;
...
...
@@ -3755,8 +3755,6 @@ int ipmi_unregister_smi(struct ipmi_smi *intf)
cleanup_srcu_struct
(
&
intf
->
users_srcu
);
kref_put
(
&
intf
->
refcount
,
intf_free
);
return
0
;
}
EXPORT_SYMBOL
(
ipmi_unregister_smi
);
...
...
drivers/char/ipmi/ipmi_si_intf.c
View file @
6a0d23ed
...
...
@@ -2365,16 +2365,13 @@ static void shutdown_smi(void *send_info)
static
void
shutdown_one_si
(
struct
smi_info
*
smi_info
)
{
int
rv
;
ipmi_smi_t
intf
=
smi_info
->
intf
;
if
(
!
intf
)
return
;
smi_info
->
intf
=
NULL
;
rv
=
ipmi_unregister_smi
(
intf
);
if
(
rv
)
pr_err
(
PFX
"Unable to unregister device: errno=%d
\n
"
,
rv
);
ipmi_unregister_smi
(
intf
);
}
static
void
cleanup_one_si
(
struct
smi_info
*
smi_info
)
...
...
drivers/char/ipmi/ipmi_ssif.c
View file @
6a0d23ed
...
...
@@ -1247,9 +1247,7 @@ static int ssif_remove(struct i2c_client *client)
*/
intf
=
ssif_info
->
intf
;
ssif_info
->
intf
=
NULL
;
rv
=
ipmi_unregister_smi
(
intf
);
if
(
rv
)
pr_err
(
PFX
"Unable to unregister device: errno=%d
\n
"
,
rv
);
ipmi_unregister_smi
(
intf
);
list_for_each_entry
(
addr_info
,
&
ssif_infos
,
link
)
{
if
(
addr_info
->
client
==
client
)
{
...
...
include/linux/ipmi_smi.h
View file @
6a0d23ed
...
...
@@ -220,7 +220,7 @@ int ipmi_register_smi(const struct ipmi_smi_handlers *handlers,
* Remove a low-level interface from the IPMI driver. This will
* return an error if the interface is still in use by a user.
*/
int
ipmi_unregister_smi
(
ipmi_smi_t
intf
);
void
ipmi_unregister_smi
(
ipmi_smi_t
intf
);
/*
* The lower layer reports received messages through this interface.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment