ext2: plug a set-but-not-used var

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2022-04-19 12:28:22 +00:00
parent d37dca9ec9
commit 11c5495554

View File

@ -449,7 +449,11 @@ static int
ext4_ext_check_header(struct inode *ip, struct ext4_extent_header *eh,
int depth)
{
#ifdef KDTRACE_HOOKS
char *error_msg;
#else
char *error_msg __unused;
#endif
if (le16toh(eh->eh_magic) != EXT4_EXT_MAGIC) {
error_msg = "header: invalid magic";