summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/libstub/skip_spaces.c
blob: 159fb4e456c639403889a6a23f15f5806ee8ea27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: GPL-2.0

#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/types.h>

char *skip_spaces(const char *str)
{
	while (isspace(*str))
		++str;
	return (char *)str;
}