Skip to content

-Wtautological-constant-compare in drivers/media/pci/ #752

Closed

Description

@nathanchance

Meta: #488

Example:

drivers/media/pci/cx18/cx18-driver.c:1005:21: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
                        cx18_call_hw(cx, CX18_HW_GPIO_RESET_CTRL,
                                         ^
drivers/media/pci/cx18/cx18-cards.h:18:37: note: expanded from macro 'CX18_HW_GPIO_RESET_CTRL'
#define CX18_HW_GPIO_RESET_CTRL         (1 << 6)
                                           ^
1 warning generated.

Patch submitted: https://lore.kernel.org/lkml/20191024201240.49063-1-natechancellor@gmail.com/

Activity

  1. self-assigned this
    on Oct 24, 2019
  2. added
    [PATCH] AcceptedA submitted patch has been accepted upstream
    and removed
    [PATCH] SubmittedA patch has been submitted for review
    on Dec 16, 2019
  3. nathanchance commented on Jan 31, 2020

    @nathanchance
    MemberAuthor
  4. added and removed
    [PATCH] AcceptedA submitted patch has been accepted upstream
    on Jan 31, 2020
  5. 85 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions