Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed coverity issue in acl_kernel_if.cpp: Type: Reliance on integer …
…endianness (INCOMPATIBLE_CAST) In the three instances where this issue happens, the function acl_kernel_if_read_32b is used at the end of the scope to query about what's inside the acl_kernel_if* kern object. However, they don't do anything with the obtained information. I believe this read operation is performed to confirm that the acl_kernel_if* kern has been written properly. So if the read operation successed, then the write operation must have also succeeded as well. The functions employing acl_kernel_if_read_32b are used to return the segment offset. This segment offset is then used to perform another read/write, which return status would then be used for error checking. Therefore, the `acl_kernel_if_read_32b` function is redundant and can be removed from the aformentioned 3 instances.
- Loading branch information