sbin/hammer: Make rel_buffer() and rel_volume() check if arg is NULL
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 26 Mar 2015 12:59:03 +0000 (21:59 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 28 Mar 2015 22:17:01 +0000 (07:17 +0900)
commit3c6df2848cf5f7a5286f6cba419f1657e5ff1bea
tree6e745e03d806e641a28e1cbd1cf841465375d1a9
parent14df6a3d588d21fef1ea74dd9c9e052cc1e1ba8c
sbin/hammer: Make rel_buffer() and rel_volume() check if arg is NULL

- Some of the existing code do "if (buf) { rel_buffer(buf); }",
  but others just do "rel_buffer(buf);". Make code and things clear
  by making these rel_buffer() and rel_volume() check if the pointer
  is NULL.
sbin/hammer/blockmap.c
sbin/hammer/cmd_blockmap.c
sbin/hammer/cmd_recover.c
sbin/hammer/cmd_show.c
sbin/hammer/ondisk.c