Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148648233
D45144.id138321.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
509 B
Referenced Files
None
Subscribers
None
D45144.id138321.diff
View Options
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -792,9 +792,7 @@
sound_oss_card_info(oss_card_info *si)
{
struct snddev_info *d;
- int i, ncards;
-
- ncards = 0;
+ int i;
for (i = 0; pcm_devclass != NULL &&
i < devclass_get_maxunit(pcm_devclass); i++) {
@@ -802,7 +800,7 @@
if (!PCM_REGISTERED(d))
continue;
- if (ncards++ != si->card)
+ if (i != si->card)
continue;
PCM_UNLOCKASSERT(d);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 20, 8:37 AM (17 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30010690
Default Alt Text
D45144.id138321.diff (509 B)
Attached To
Mode
D45144: sound: Remove ncards variable from sound_oss_card_info()
Attached
Detach File
Event Timeline
Log In to Comment