metadata: Remove unnecessary check

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-05-02 15:35:33 +02:00
parent bb6fe41b9d
commit bcb2e670f3

View File

@ -79,12 +79,6 @@ static inline void ocf_metadata_load_superblock(ocf_cache_t cache,
static inline void ocf_metadata_flush_superblock(ocf_cache_t cache, static inline void ocf_metadata_flush_superblock(ocf_cache_t cache,
ocf_metadata_end_t cmpl, void *priv) ocf_metadata_end_t cmpl, void *priv)
{ {
/* TODO: Shouldn't it be checked by the caller? */
if (!cache->device) {
cmpl(priv, 0);
return;
}
cache->metadata.iface.flush_superblock(cache, cmpl, priv); cache->metadata.iface.flush_superblock(cache, cmpl, priv);
} }