commit | a44264880ef42254edb88f9ec5d6f35e3e84089b | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Thu Feb 18 11:49:42 2010 +0100 |
committer | Markus Armbruster <armbru@redhat.com> | Tue Mar 16 16:55:05 2010 +0100 |
tree | c65e90b4e4608f5cdcb098b1f22b673edf309b7c | |
parent | 8631b6084a13e712ae8356d779077991aba010a5 [diff] |
block: Simplify usb_msd_initfn() test for "can read bdrv key" The old test assumes that "hotplugged" implies "we have a current monitor for reading the key". This is in fact true, but it's not obviously true. Aside: if it were false, we could pass a null pointer to monitor_read_bdrv_key_start(), which would then crash. The previous commit permits us to check for "we have a current monitor" directly, so do that.