Bug 5903 - assigment in assert
Summary: assigment in assert
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 06:20 UTC by David Binderman
Modified: 2006-04-15 06:21 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.15.1
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description David Binderman 2006-01-16 06:20:13 UTC
Most recent kernel where this bug did not occur:
Distribution:
Hardware Environment:
Software Environment:
Problem Description:

Steps to reproduce:

I just tried to compile kernel 2.6.15.1 with the Intel C compiler. 

It said

sound/pci/cs46xx/dsp_spos_scb_lib.c(673): warning #187: use of "=" where "=="
may have been intended

The source code is

           snd_assert (rate = 48000);

I agree with the compiler. Suggest new code

           snd_assert (rate == 48000);
Comment 1 Adrian Bunk 2006-01-16 11:07:45 UTC
Thanks for this report, I'll submit a patch.
Comment 2 Adrian Bunk 2006-04-15 06:21:39 UTC
The fix is in kernel 2.6.16.

Thanks for your bug report!

Note You need to log in before you can comment on or make changes to this bug.