ubik: remove redundant memset from udisk_write 21/12621/4
authorMark Vitale <mvitale@sinenomine.net>
Fri, 19 May 2017 20:34:21 +0000 (16:34 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 25 May 2018 11:44:29 +0000 (07:44 -0400)
commit845c8927ef20e245bb88bc783dc2e581b61fbaba
tree50407ca67ffe64087f607d686d99275d462ca46a
parente4c7321560acf0bd34eeee7d46269818d82fdb44
ubik: remove redundant memset from udisk_write

When udisk_write is extending the database, DRead will return a null
buffer.  udisk_write then calls DNew to get a brand new buffer for the
extension write, and clears it with memset.  However, this is redundant,
since DNew has already cleared the new buffer.

Remove the redundant memset.

No functional change should be incurred by this commit.

Change-Id: Ia6768098fb3c67475c8948c874b92b91bf17cdb7
Reviewed-on: https://gerrit.openafs.org/12621
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/ubik/disk.c