View Issue Details

IDProjectCategoryView StatusLast Update
0005051UBootU-Bootpublic2021-10-28 14:23
Reporterderksen Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Versionfsimx8mn-Y2021.09 
Target Versionfsimx6-B2021.10Fixed in Versionfsimx6-B2021.10 
Summary0005051: net: nfs: remove superfluous conversions
Descriptionnet: nfs: remove superfluous conversions

rpc_pkt.u.call.data is an array of uint32_t. There is no need to convert
it to uint32_t *.
  
memcpy() expects void * as it 1st and 2nd argument. There is no point in
converting pointers to char * before passing them to memcpy().

In ntohl(data[1]) != 0 calling ntohl() is superfluous. If the value is
zero, does not depend on the byte order.
Additional InformationExternal patch:
    Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
    Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
    Acked-by: Joe Hershberger <joe.hershberger@ni.com>

Forum Link

Activities

There are no notes attached to this issue.