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
nexedi
linux
Commits
42d83392
Commit
42d83392
authored
Apr 30, 2004
by
Rolf Eike Beer
Committed by
Deepak Saxena
Apr 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] RPA PCI Hotplug: remove useless NULL checks from rpaphp_core.c
Remove two useless NULL checks from rpaphp_core.c
parent
093d33e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
drivers/pci/hotplug/rpaphp_core.c
drivers/pci/hotplug/rpaphp_core.c
+2
-8
No files found.
drivers/pci/hotplug/rpaphp_core.c
View file @
42d83392
...
@@ -354,10 +354,7 @@ static void __exit rpaphp_exit(void)
...
@@ -354,10 +354,7 @@ static void __exit rpaphp_exit(void)
static
int
enable_slot
(
struct
hotplug_slot
*
hotplug_slot
)
static
int
enable_slot
(
struct
hotplug_slot
*
hotplug_slot
)
{
{
int
retval
=
0
;
int
retval
=
0
;
struct
slot
*
slot
=
get_slot
(
hotplug_slot
,
__FUNCTION__
);
struct
slot
*
slot
=
(
struct
slot
*
)
hotplug_slot
->
private
;
if
(
slot
==
NULL
)
return
-
ENODEV
;
if
(
slot
->
state
==
CONFIGURED
)
{
if
(
slot
->
state
==
CONFIGURED
)
{
dbg
(
"%s: %s is already enabled
\n
"
,
__FUNCTION__
,
slot
->
name
);
dbg
(
"%s: %s is already enabled
\n
"
,
__FUNCTION__
,
slot
->
name
);
...
@@ -385,10 +382,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
...
@@ -385,10 +382,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
static
int
disable_slot
(
struct
hotplug_slot
*
hotplug_slot
)
static
int
disable_slot
(
struct
hotplug_slot
*
hotplug_slot
)
{
{
int
retval
;
int
retval
;
struct
slot
*
slot
=
get_slot
(
hotplug_slot
,
__FUNCTION__
);
struct
slot
*
slot
=
(
struct
slot
*
)
hotplug_slot
->
private
;
if
(
slot
==
NULL
)
return
-
ENODEV
;
dbg
(
"%s - Entry: slot[%s]
\n
"
,
__FUNCTION__
,
slot
->
name
);
dbg
(
"%s - Entry: slot[%s]
\n
"
,
__FUNCTION__
,
slot
->
name
);
...
...
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