• K
    net: fix array_size.cocci warnings · e4932db2
    kbuild test robot 提交于
    net/hookers/hookers.c:194:44-45: WARNING: Use ARRAY_SIZE
    
     Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
    
    Semantic patch information:
     This makes an effort to find cases where ARRAY_SIZE can be used such as
     where there is a division of sizeof the array by the sizeof its first
     element or by any indexed element or the element type. It replaces the
     division of the two sizeofs by ARRAY_SIZE.
    
    Generated by: scripts/coccinelle/misc/array_size.cocci
    
    [ caspar: remove redundant parentheses ]
    
    Fixes: 3c74cfbb ("net: kernel hookers service for toa module")
    CC: George Zhang <georgezhang@linux.alibaba.com>
    Signed-off-by: Nkbuild test robot <lkp@intel.com>
    Reviewed-by: NCaspar Zhang <caspar@linux.alibaba.com>
    e4932db2
hookers.c 8.3 KB