diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2019-02-08 23:50:31 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-02-25 19:56:01 +0300 |
commit | c6dfd690f1c333475db1833ef3b5a4f4d6ba7365 (patch) | |
tree | d41b3c08e8631325ebee244f0da68c159cc9c6f4 /drivers/net/ethernet/alacritech | |
parent | 0e8fd74df2f37e2dcc305ed22f4feb8587b91929 (diff) | |
download | linux-c6dfd690f1c333475db1833ef3b5a4f4d6ba7365.tar.xz |
ice: sizeof(<type>) should be avoided
With sizeof(), it is preferable to use the variable of type <type> instead
of sizeof(<type>).
There are multiple places where a temporary variable is used to hold a
'size' value which is then used for a subsequent alloc/memset. Get rid
of the temporary variable by calculating size as part of the alloc/memset
statement.
Also remove unnecessary type-cast.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/alacritech')
0 files changed, 0 insertions, 0 deletions