Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
d39969de
Commit
d39969de
authored
Sep 10, 2005
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: i8042 - use kzalloc instead of kcalloc
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
fe1e8604
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+3
-3
No files found.
drivers/input/serio/i8042.c
View file @
d39969de
...
...
@@ -986,7 +986,7 @@ static int __init i8042_create_kbd_port(void)
struct
serio
*
serio
;
struct
i8042_port
*
port
=
&
i8042_ports
[
I8042_KBD_PORT_NO
];
serio
=
k
calloc
(
1
,
sizeof
(
struct
serio
),
GFP_KERNEL
);
serio
=
k
zalloc
(
sizeof
(
struct
serio
),
GFP_KERNEL
);
if
(
!
serio
)
return
-
ENOMEM
;
...
...
@@ -1011,7 +1011,7 @@ static int __init i8042_create_aux_port(void)
struct
serio
*
serio
;
struct
i8042_port
*
port
=
&
i8042_ports
[
I8042_AUX_PORT_NO
];
serio
=
k
calloc
(
1
,
sizeof
(
struct
serio
),
GFP_KERNEL
);
serio
=
k
zalloc
(
sizeof
(
struct
serio
),
GFP_KERNEL
);
if
(
!
serio
)
return
-
ENOMEM
;
...
...
@@ -1036,7 +1036,7 @@ static int __init i8042_create_mux_port(int index)
struct
serio
*
serio
;
struct
i8042_port
*
port
=
&
i8042_ports
[
I8042_MUX_PORT_NO
+
index
];
serio
=
k
calloc
(
1
,
sizeof
(
struct
serio
),
GFP_KERNEL
);
serio
=
k
zalloc
(
sizeof
(
struct
serio
),
GFP_KERNEL
);
if
(
!
serio
)
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