ubifs: remove redundant checks for encryption key