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
ca16ec02
Commit
ca16ec02
authored
Oct 28, 2013
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: hda - Remove locally dead codes
Reported by coverity. Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
57d8ff61
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.c
+1
-2
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+0
-2
No files found.
sound/pci/hda/hda_codec.c
View file @
ca16ec02
...
...
@@ -2634,8 +2634,7 @@ static int map_slaves(struct hda_codec *codec, const char * const *slaves,
items
=
codec
->
mixers
.
list
;
for
(
i
=
0
;
i
<
codec
->
mixers
.
used
;
i
++
)
{
struct
snd_kcontrol
*
sctl
=
items
[
i
].
kctl
;
if
(
!
sctl
||
!
sctl
->
id
.
name
||
sctl
->
id
.
iface
!=
SNDRV_CTL_ELEM_IFACE_MIXER
)
if
(
!
sctl
||
sctl
->
id
.
iface
!=
SNDRV_CTL_ELEM_IFACE_MIXER
)
continue
;
for
(
s
=
slaves
;
*
s
;
s
++
)
{
char
tmpname
[
sizeof
(
sctl
->
id
.
name
)];
...
...
sound/pci/hda/patch_realtek.c
View file @
ca16ec02
...
...
@@ -554,8 +554,6 @@ static int alc_subsystem_id(struct hda_codec *codec,
nid
=
portd
;
else
if
(
tmp
==
3
)
nid
=
porti
;
else
return
1
;
if
(
found_in_nid_list
(
nid
,
spec
->
gen
.
autocfg
.
line_out_pins
,
spec
->
gen
.
autocfg
.
line_outs
))
return
1
;
...
...
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