Merge pull request #26879 from mrc0mmand/cocci

tree-wide: simplify x ? x : y to x ?: y where applicable
This commit is contained in:
Yu Watanabe
2023-03-19 02:48:39 +09:00
committed by GitHub
16 changed files with 23 additions and 16 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ char** strv_new_ap(const char *x, va_list ap);
#define STRV_IGNORE ((const char *) POINTER_MAX)
static inline const char* STRV_IFNOTNULL(const char *x) {
return x ? x : STRV_IGNORE;
return x ?: STRV_IGNORE;
}
static inline bool strv_isempty(char * const *l) {