Bug 5903

Summary: assigment in assert
Product: Drivers Reporter: David Binderman (dcb314)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: CLOSED CODE_FIX    
Severity: normal CC: bunk
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.15.1 Subsystem:
Regression: --- Bisected commit-id:

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!