]> git.proxmox.com Git - mirror_zfs.git/commit
Remove unused 'dsl_pool_t *dp' variable
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 May 2015 17:50:35 +0000 (10:50 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 14 May 2015 18:09:47 +0000 (11:09 -0700)
commitfd0fd6467bb8638b1496ad5a63b74f19fbd607df
treed546b494815a43627d4c20b987dca48c0fab031e
parent5dc8b7365ff1932bfd969bc71cd49db9b3a6dc87
Remove unused 'dsl_pool_t *dp' variable

When ASSERTs are compiled out by using the --disable-debug configure
option.  Then the local variable 'dsl_pool_t *dp' will be unused and
generate a compiler warning.  Since this variable is only used once
in the ASSERT replace it with 'ds->ds_dir->dd_pool'.

This has the additional advantage of potentially saving a few bytes
on the stack depending on how gcc decides to compile the function.

This issue was not noticed immediately because the automated builders
use --enable-debug to make the testing as rigorous as possible.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Closes #3410
module/zfs/dmu_send.c