ram: Remove compression_switch and inline its logic
commit6d358d94943076846328cc292e4f45c31e1d5d96
authorJuan Quintela <quintela@redhat.com>
Thu, 16 Mar 2017 20:29:34 +0000 (16 21:29 +0100)
committerJuan Quintela <quintela@redhat.com>
Fri, 21 Apr 2017 10:25:39 +0000 (21 12:25 +0200)
treef1b63cbd71de5782e86d0f25ae199381834f82cb
parentce25d33781c6c1d679ff6fd06b43188f4adb9c41
ram: Remove compression_switch and inline its logic

We can calculate its value, so we don't create a variable for it.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
--

After Peter and Dave review, I dropped the variable and just inlined
the condition.

Fix typo
migration/ram.c