Skip to content
Snippets Groups Projects
Commit 1c71abb6 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

fix checkpatch suggestions

parent cee1649e
No related branches found
No related tags found
1 merge request!25Codespell
......@@ -1094,7 +1094,7 @@ int cmp_info_read(const char *file_name, struct cmp_info *info, int verbose_en)
* @returns a pointer to the character after the spaces
*/
static __inline const char *skip_space(const char *str)
static const char *skip_space(const char *str)
{
while (isspace(*str))
str++;
......@@ -1110,7 +1110,7 @@ static __inline const char *skip_space(const char *str)
* @returns a pointer to the character after the comment
*/
static __inline const char *skip_comment(const char *str)
static const char *skip_comment(const char *str)
{
char c = *str;
......@@ -1143,7 +1143,7 @@ static __inline const char *skip_comment(const char *str)
* conversion can be performed, 0 is returned (errno is set to EINVAL)).
*/
static __inline uint8_t str_to_uint8(const char *str, char const **str_end)
static uint8_t str_to_uint8(const char *str, char const **str_end)
{
const int BASE = 16;
int i;
......
......@@ -65,7 +65,7 @@
#define MAX_USED_FC_BACKGROUND_OUTLIER_PIXELS_BITS 16 /* TBC */
#define member_bit_size(type, member) sizeof(((type *)0)->member)*8
#define member_bit_size(type, member) (sizeof(((type *)0)->member)*8)
/* a safe the different data products types in bits */
......
......@@ -47,6 +47,7 @@ LIST_HEAD(max_used_bits_list);
const struct cmp_max_used_bits *cmp_max_used_bits_list_get(uint8_t version)
{
struct list_item *list_ptr = NULL;
switch (version) {
case 0:
return &MAX_USED_BITS_SAFE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment