diff options
author | Matt Helsley <mhelsley@vmware.com> | 2019-07-24 23:04:56 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-08-31 18:19:38 +0200 |
commit | a146207916092a49bd01ef861ac9582fd318c21a (patch) | |
tree | 2eeddafac5141f7d7c79ac44fd90d09b71b03a29 /arch/c6x | |
parent | recordmcount: Remove redundant strcmp (diff) | |
download | linux-a146207916092a49bd01ef861ac9582fd318c21a.tar.xz linux-a146207916092a49bd01ef861ac9582fd318c21a.zip |
recordmcount: Remove uread()
uread() is only used to initialize the ELF file's pseudo
private-memory mapping while uwrite() and ulseek() work within
the pseudo-mapping and extend it as necessary. Thus it is not
a complementary function to uwrite() and ulseek(). It also makes
no sense to do cleanups inside uread() when its only caller,
mmap_file(), is doing the relevant allocations and associated
initializations.
Therefore it's clearer to use a plain read() call to initialize the
data in mmap_file() and remove uread().
Link: http://lkml.kernel.org/r/31a87c22b19150cec1c8dc800c8b0873a2741703.1563992889.git.mhelsley@vmware.com
Signed-off-by: Matt Helsley <mhelsley@vmware.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions