metadata: Remove unnecessary check
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
bb6fe41b9d
commit
bcb2e670f3
@ -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,
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user