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)
commit13857afeeba2d482361f4e08f543f755b02f3bfc
tree90f4b4c7c89a22bf6676e2c733aeeebd6a07b80c
parent886733fffbfb20837c7e1497f72dbb15bf98a433
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