Re: linux-3.4-rc5 bug report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix from Dan is now merged into cifs-2.6.git

On Mon, May 7, 2012 at 11:55 AM, David Binderman <dcb314@xxxxxxxxxxx> wrote:
> Hello there,
>
> I just compiled the Linux kernel linux-3.4-rc5, with
> the extra flag -Wlogical-op.
>
> The compiler said
>
> fs/cifs/cifsfs.c:702:2: warning: logical ‘or’ of collectively exhaustive
> tests is always true [-Wlogical-op]
>
> The source code is
>
>     if (origin != SEEK_SET || origin != SEEK_CUR) {
>
> It might be the case that
>
>     if (origin != SEEK_SET && origin != SEEK_CUR) {
>
> was intended.
>
> Regards
>
> David Binderman
>



-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux