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
9cf9707e
Commit
9cf9707e
authored
Sep 24, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: i was wrong, clean up some extra refcounts that are no longer needed.
parent
9e155521
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
drivers/usb/core/usb.c
drivers/usb/core/usb.c
+0
-6
No files found.
drivers/usb/core/usb.c
View file @
9cf9707e
...
...
@@ -922,10 +922,6 @@ void usb_disconnect(struct usb_device **pdev)
}
up
(
&
dev
->
serialize
);
device_unregister
(
&
dev
->
dev
);
/* Decrement the reference count, it'll auto free everything when */
/* it hits 0 which could very well be now */
usb_put_dev
(
dev
);
}
/**
...
...
@@ -1009,7 +1005,6 @@ int usb_new_device(struct usb_device *dev, struct device *parent)
dev
->
dev
.
driver
=
&
usb_generic_driver
;
dev
->
dev
.
bus
=
&
usb_bus_type
;
dev
->
dev
.
driver_data
=
&
usb_generic_driver_data
;
usb_get_dev
(
dev
);
if
(
dev
->
dev
.
bus_id
[
0
]
==
0
)
sprintf
(
&
dev
->
dev
.
bus_id
[
0
],
"%d-%s"
,
dev
->
bus
->
busnum
,
dev
->
devpath
);
...
...
@@ -1135,7 +1130,6 @@ int usb_new_device(struct usb_device *dev, struct device *parent)
dev
->
state
=
USB_STATE_DEFAULT
;
clear_bit
(
dev
->
devnum
,
dev
->
bus
->
devmap
.
devicemap
);
dev
->
devnum
=
-
1
;
usb_put_dev
(
dev
);
return
err
;
}
...
...
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