• horms@vergenet.net's avatar
    Staging: otus: Fix ZM_SEQ_DEBUG macro for no-debug case · e36e8c0a
    horms@vergenet.net authored
    tcp_seq is only initialised in case where ZM_ENABLE_PERFORMANCE_EVALUATION
    is defined. So move the call to ZM_SEQ_DEBUG() and the decleration of
    tcp_seq in there too.  This allows ZM_SEQ_DEBUG() to be removed from the
    non-ZM_ENABLE_PERFORMANCE_EVALUATION case in the header file.
    
    This resolves several compile warnings for the
    non-ZM_ENABLE_PERFORMANCE_EVALUATION case.
    However, the ZM_ENABLE_PERFORMANCE_EVALUATION
    case seems to be completely broken.
    
    $ gcc (Debian 4.4.2-8) 4.4.2
    Copyright (C) 2009 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    $ make
    ...
    drivers/staging/otus/80211core/cagg.c: In function 'zfAggRxEnabled':
    drivers/staging/otus/80211core/cagg.c:1872: warning: left-hand operand of
    comma expression has no effect
    drivers/staging/otus/80211core/cagg.c:1872: warning: left-hand operand of
    comma expression has no effect
    drivers/staging/otus/80211core/cagg.c:1872: warning: statement with no
    effect
    ...
    Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    e36e8c0a
pub_zfi.h 30.7 KB