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
6b728a65
Commit
6b728a65
authored
Jun 20, 2003
by
Gabriel Devenyi
Committed by
Vojtech Pavlik
Jun 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Fix gameport.c - gameport was never closed after calibrating
parent
3ea1af42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/input/gameport/gameport.c
drivers/input/gameport/gameport.c
+2
-2
No files found.
drivers/input/gameport/gameport.c
View file @
6b728a65
...
...
@@ -84,6 +84,7 @@ static int gameport_measure_speed(struct gameport *gameport)
if
((
t
=
DELTA
(
t2
,
t1
)
-
DELTA
(
t3
,
t2
))
<
tx
)
tx
=
t
;
}
gameport_close
(
gameport
);
return
59659
/
(
tx
<
1
?
1
:
tx
);
#else
...
...
@@ -93,11 +94,10 @@ static int gameport_measure_speed(struct gameport *gameport)
j
=
jiffies
;
while
(
j
==
jiffies
);
j
=
jiffies
;
while
(
j
==
jiffies
)
{
t
++
;
gameport_read
(
gameport
);
}
gameport_close
(
gameport
);
return
t
*
HZ
/
1000
;
#endif
gameport_close
(
gameport
);
}
static
void
gameport_find_dev
(
struct
gameport
*
gameport
)
...
...
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