lkml.org 
[lkml]   [2021]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH net-next 5/6] net: pci200syn: add necessary () to macro argument
    Date
    Macro argument 'card' may be better as '(card)' to
    avoid precedence issues.

    Signed-off-by: Peng Li <lipeng321@huawei.com>
    ---
    drivers/net/wan/pci200syn.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/wan/pci200syn.c b/drivers/net/wan/pci200syn.c
    index ac4a599..abca13b 100644
    --- a/drivers/net/wan/pci200syn.c
    +++ b/drivers/net/wan/pci200syn.c
    @@ -86,7 +86,7 @@ typedef struct card_s {
    port_t ports[2];
    } card_t;

    -#define get_port(card, port) (&card->ports[port])
    +#define get_port(card, port) (&(card)->ports[port])
    #define sca_flush(card) (sca_in(IER0, card))

    static inline void new_memcpy_toio(char __iomem *dest, char *src, int length)
    --
    2.8.1
    \
     
     \ /
      Last update: 2021-06-15 15:59    [W:2.258 / U:0.504 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site