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
a47ee431
Commit
a47ee431
authored
Jan 11, 2003
by
Duncan Sands
Committed by
Greg Kroah-Hartman
Jan 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove redundant casts in speedtouch
speedtouch: remove some redundant casts.
parent
1aacc52c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+10
-13
No files found.
drivers/usb/misc/speedtouch.c
View file @
a47ee431
...
...
@@ -290,7 +290,7 @@ struct sk_buff *udsl_atm_alloc_tx (struct atm_vcc *vcc, unsigned int size)
int
udsl_atm_proc_read
(
struct
atm_dev
*
atm_dev
,
loff_t
*
pos
,
char
*
page
)
{
struct
udsl_instance_data
*
instance
=
(
struct
udsl_instance_data
*
)
atm_dev
->
dev_data
;
struct
udsl_instance_data
*
instance
=
atm_dev
->
dev_data
;
int
left
=
*
pos
;
if
(
!
left
--
)
...
...
@@ -325,8 +325,8 @@ int udsl_atm_proc_read (struct atm_dev *atm_dev, loff_t * pos, char *page)
****************************************************************************/
int
udsl_atm_send
(
struct
atm_vcc
*
vcc
,
struct
sk_buff
*
skb
)
{
struct
udsl_atm_dev_data
*
dev_data
=
(
struct
udsl_atm_dev_data
*
)
vcc
->
dev_data
;
struct
udsl_instance_data
*
instance
=
(
struct
udsl_instance_data
*
)
vcc
->
dev
->
dev_data
;
struct
udsl_atm_dev_data
*
dev_data
=
vcc
->
dev_data
;
struct
udsl_instance_data
*
instance
=
vcc
->
dev
->
dev_data
;
struct
sk_buff
*
new
=
NULL
;
int
err
;
...
...
@@ -442,7 +442,7 @@ void udsl_atm_processqueue (unsigned long data)
int
udsl_atm_open
(
struct
atm_vcc
*
vcc
,
short
vpi
,
int
vci
)
{
struct
udsl_atm_dev_data
*
dev_data
;
struct
udsl_instance_data
*
instance
=
(
struct
udsl_instance_data
*
)
vcc
->
dev
->
dev_data
;
struct
udsl_instance_data
*
instance
=
vcc
->
dev
->
dev_data
;
PDEBUG
(
"udsl_atm_open called
\n
"
);
...
...
@@ -451,8 +451,7 @@ int udsl_atm_open (struct atm_vcc *vcc, short vpi, int vci)
return
-
EINVAL
;
MOD_INC_USE_COUNT
;
dev_data
=
(
struct
udsl_atm_dev_data
*
)
kmalloc
(
sizeof
(
struct
udsl_atm_dev_data
),
GFP_KERNEL
);
dev_data
=
kmalloc
(
sizeof
(
struct
udsl_atm_dev_data
),
GFP_KERNEL
);
if
(
!
dev_data
)
return
-
ENOMEM
;
...
...
@@ -480,8 +479,8 @@ int udsl_atm_open (struct atm_vcc *vcc, short vpi, int vci)
void
udsl_atm_close
(
struct
atm_vcc
*
vcc
)
{
struct
udsl_atm_dev_data
*
dev_data
=
(
struct
udsl_atm_dev_data
*
)
vcc
->
dev_data
;
struct
udsl_instance_data
*
instance
=
(
struct
udsl_instance_data
*
)
vcc
->
dev
->
dev_data
;
struct
udsl_atm_dev_data
*
dev_data
=
vcc
->
dev_data
;
struct
udsl_instance_data
*
instance
=
vcc
->
dev
->
dev_data
;
PDEBUG
(
"udsl_atm_close called
\n
"
);
...
...
@@ -532,7 +531,7 @@ struct udsl_cb {
static
void
udsl_usb_send_data_complete
(
struct
urb
*
urb
,
struct
pt_regs
*
regs
)
{
struct
udsl_usb_send_data_context
*
ctx
=
(
struct
udsl_usb_send_data_context
*
)
urb
->
context
;
struct
udsl_usb_send_data_context
*
ctx
=
urb
->
context
;
struct
udsl_instance_data
*
instance
=
ctx
->
instance
;
int
err
;
...
...
@@ -658,7 +657,7 @@ void udsl_usb_data_receive (struct urb *urb, struct pt_regs *regs)
PDEBUG
(
"udsl_usb_receive_data entered, got packet %p with length %d an status %d
\n
"
,
urb
,
urb
->
actual_length
,
urb
->
status
);
ctx
=
(
struct
udsl_data_ctx
*
)
urb
->
context
;
ctx
=
urb
->
context
;
if
(
!
ctx
||
!
ctx
->
skb
)
return
;
...
...
@@ -717,9 +716,7 @@ int udsl_usb_data_init (struct udsl_instance_data *instance)
usb_maxpacket
(
instance
->
usb_dev
,
usb_sndbulkpipe
(
instance
->
usb_dev
,
UDSL_ENDPOINT_DATA_OUT
),
0
));
instance
->
rcvbufs
=
(
struct
udsl_data_ctx
*
)
kmalloc
(
sizeof
(
struct
udsl_data_ctx
)
*
UDSL_NUMBER_RCV_URBS
,
GFP_KERNEL
);
instance
->
rcvbufs
=
kmalloc
(
sizeof
(
struct
udsl_data_ctx
)
*
UDSL_NUMBER_RCV_URBS
,
GFP_KERNEL
);
if
(
!
instance
->
rcvbufs
)
return
-
ENOMEM
;
...
...
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