QMP: Drop dead code
authorLuiz Capitulino <lcapitulino@redhat.com>
Mon, 22 Nov 2010 18:35:09 +0000 (16:35 -0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 6 Dec 2010 11:51:41 +0000 (09:51 -0200)
commit6d44143054293995c5e92fbddbd1ee92846013cc
tree90f4b4c7c89a22bf6676e2c733aeeebd6a07b80c
parentc01e68853148764d32c3a27ab4b39cb553c567fc
QMP: Drop dead code

The first if/else clause in handler_audit() makes no sense for two
reasons:

  1. this function is now called only by QMP code, so testing if
     it's a QMP call makes no sense anymore

  2. the else clause first asserts that there's no error in the
     monitor object, then it tries to free it!

Just drop it.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor.c