summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-07-13 15:19:31 +0200
committerTom Rini <trini@konsulko.com>2024-07-15 12:12:18 -0600
commit10cb047b8bf930ff7c9b2fb3c7902b303553c2d3 (patch)
tree3ae1d31a5cff43ae7f03804d4bb87da54662f6fd /scripts
parent2cd9466bedec4950d7291efa95f228c5150ee421 (diff)
downloadu-boot-10cb047b8bf930ff7c9b2fb3c7902b303553c2d3.tar.gz
u-boot-10cb047b8bf930ff7c9b2fb3c7902b303553c2d3.tar.bz2
u-boot-10cb047b8bf930ff7c9b2fb3c7902b303553c2d3.zip
scripts: Remove duplicate newlines
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dtc/checks.c2
-rw-r--r--scripts/dtc/dtc.h3
-rw-r--r--scripts/dtc/flattree.c3
-rw-r--r--scripts/dtc/libfdt/fdt_ro.c2
-rw-r--r--scripts/dtc/libfdt/libfdt.h2
-rw-r--r--scripts/dtc/livetree.c1
-rw-r--r--scripts/dtc/srcpos.c3
-rw-r--r--scripts/dtc/srcpos.h1
-rw-r--r--scripts/dtc/treesource.c1
-rw-r--r--scripts/dtc/util.c1
-rw-r--r--scripts/kconfig/gconf.c38
-rw-r--r--scripts/kconfig/list.h2
-rw-r--r--scripts/kconfig/lkc.h1
-rw-r--r--scripts/kconfig/lxdialog/dialog.h1
-rw-r--r--scripts/kconfig/lxdialog/textbox.c1
-rw-r--r--scripts/kconfig/menu.c1
-rw-r--r--scripts/kconfig/nconf.c2
-rw-r--r--scripts/kconfig/nconf.gui.c5
18 files changed, 0 insertions, 70 deletions
diff --git a/scripts/dtc/checks.c b/scripts/dtc/checks.c
index c35aa6f886..2feec44a0f 100644
--- a/scripts/dtc/checks.c
+++ b/scripts/dtc/checks.c
@@ -111,7 +111,6 @@ static inline void PRINTF(5, 6) check_msg(struct check *c, struct dt_info *dti,
check_msg((c), dti, node, prop, __VA_ARGS__); \
} while (0)
-
static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node)
{
struct node *child;
@@ -1076,7 +1075,6 @@ static void check_obsolete_chosen_interrupt_controller(struct check *c,
if (node != dt)
return;
-
chosen = get_node_by_path(dt, "/chosen");
if (!chosen)
return;
diff --git a/scripts/dtc/dtc.h b/scripts/dtc/dtc.h
index 6d667701ab..39c50a2c4f 100644
--- a/scripts/dtc/dtc.h
+++ b/scripts/dtc/dtc.h
@@ -65,7 +65,6 @@ extern int auto_label_aliases; /* auto generate labels -> aliases */
typedef uint32_t cell_t;
-
#define streq(a, b) (strcmp((a), (b)) == 0)
#define strstarts(s, prefix) (strncmp((s), (prefix), strlen(prefix)) == 0)
#define strprefixeq(a, n, b) (strlen(b) == (n) && (memcmp(a, b, n) == 0))
@@ -92,7 +91,6 @@ struct data {
struct marker *markers;
};
-
#define empty_data ((struct data){ 0 /* all .members = 0 or NULL */ })
#define for_each_marker(m) \
@@ -252,7 +250,6 @@ struct reserve_info *chain_reserve_entry(struct reserve_info *first,
struct reserve_info *add_reserve_entry(struct reserve_info *list,
struct reserve_info *new);
-
struct dt_info {
unsigned int dtsflags;
struct reserve_info *reservelist;
diff --git a/scripts/dtc/flattree.c b/scripts/dtc/flattree.c
index 8d268fb785..086c5abf10 100644
--- a/scripts/dtc/flattree.c
+++ b/scripts/dtc/flattree.c
@@ -695,7 +695,6 @@ static struct property *flat_read_property(struct inbuf *dtbuf,
return build_property(name, val);
}
-
static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
{
struct reserve_info *reservelist = NULL;
@@ -724,7 +723,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
return reservelist;
}
-
static char *nodename_from_path(const char *ppath, const char *cpath)
{
int plen;
@@ -806,7 +804,6 @@ static struct node *unflatten_tree(struct inbuf *dtbuf,
return node;
}
-
struct dt_info *dt_from_blob(const char *fname)
{
FILE *f;
diff --git a/scripts/dtc/libfdt/fdt_ro.c b/scripts/dtc/libfdt/fdt_ro.c
index 63eaf57f43..d65656aaa8 100644
--- a/scripts/dtc/libfdt/fdt_ro.c
+++ b/scripts/dtc/libfdt/fdt_ro.c
@@ -421,7 +421,6 @@ static const struct fdt_property *fdt_get_property_namelen_(const void *fdt,
return NULL;
}
-
const struct fdt_property *fdt_get_property_namelen(const void *fdt,
int offset,
const char *name,
@@ -439,7 +438,6 @@ const struct fdt_property *fdt_get_property_namelen(const void *fdt,
NULL);
}
-
const struct fdt_property *fdt_get_property(const void *fdt,
int nodeoffset,
const char *name, int *lenp)
diff --git a/scripts/dtc/libfdt/libfdt.h b/scripts/dtc/libfdt/libfdt.h
index d706f85962..16ec53e78b 100644
--- a/scripts/dtc/libfdt/libfdt.h
+++ b/scripts/dtc/libfdt/libfdt.h
@@ -1162,7 +1162,6 @@ int fdt_address_cells(const void *fdt, int nodeoffset);
*/
int fdt_size_cells(const void *fdt, int nodeoffset);
-
/**********************************************************************/
/* Write-in-place functions */
/**********************************************************************/
@@ -1696,7 +1695,6 @@ static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
#define fdt_setprop_string(fdt, nodeoffset, name, str) \
fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
-
/**
* fdt_setprop_empty - set a property to an empty value
* @fdt: pointer to the device tree blob
diff --git a/scripts/dtc/livetree.c b/scripts/dtc/livetree.c
index 6e4c367f54..ba06ef348b 100644
--- a/scripts/dtc/livetree.c
+++ b/scripts/dtc/livetree.c
@@ -631,7 +631,6 @@ uint32_t guess_boot_cpuid(struct node *tree)
if (!cpus)
return 0;
-
bootcpu = cpus->children;
if (!bootcpu)
return 0;
diff --git a/scripts/dtc/srcpos.c b/scripts/dtc/srcpos.c
index c297861145..0ad89e2af6 100644
--- a/scripts/dtc/srcpos.c
+++ b/scripts/dtc/srcpos.c
@@ -33,7 +33,6 @@ struct search_path {
/* This is the list of directories that we search for source files */
static struct search_path *search_path_head, **search_path_tail;
-
static char *get_dirname(const char *path)
{
const char *slash = strrchr(path, '/');
@@ -56,7 +55,6 @@ struct srcfile_state *current_srcfile; /* = NULL */
#define MAX_SRCFILE_DEPTH (100)
static int srcfile_depth; /* = 0 */
-
/**
* Try to open a file in a given directory.
*
@@ -250,7 +248,6 @@ srcpos_string(struct srcpos *pos)
if (pos->file && pos->file->name)
fname = pos->file->name;
-
if (pos->first_line != pos->last_line)
xasprintf(&pos_str, "%s:%d.%d-%d.%d", fname,
pos->first_line, pos->first_column,
diff --git a/scripts/dtc/srcpos.h b/scripts/dtc/srcpos.h
index 5db32a723e..fcd9937a91 100644
--- a/scripts/dtc/srcpos.h
+++ b/scripts/dtc/srcpos.h
@@ -95,7 +95,6 @@ struct srcpos {
} \
} while (0)
-
/*
* Fictional source position used for IR nodes that are
* created without otherwise knowing a true source position.
diff --git a/scripts/dtc/treesource.c b/scripts/dtc/treesource.c
index b36cb41902..8c8b914698 100644
--- a/scripts/dtc/treesource.c
+++ b/scripts/dtc/treesource.c
@@ -262,7 +262,6 @@ static void write_tree_source_node(FILE *f, struct node *tree, int level)
fprintf(f, "};\n");
}
-
void dt_to_source(FILE *f, struct dt_info *dti)
{
struct reserve_info *re;
diff --git a/scripts/dtc/util.c b/scripts/dtc/util.c
index 9953c32a02..23334d39bb 100644
--- a/scripts/dtc/util.c
+++ b/scripts/dtc/util.c
@@ -325,7 +325,6 @@ int utilfdt_write_err(const char *filename, const void *blob)
return ret < 0 ? -ret : 0;
}
-
int utilfdt_write(const char *filename, const void *blob)
{
int ret = utilfdt_write_err(filename, blob);
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index 2ec7419301..aee993a778 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -360,10 +360,8 @@ void init_right_tree(void)
gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE);
}
-
/* Utility Functions */
-
static void text_insert_help(struct menu *menu)
{
GtkTextBuffer *buffer;
@@ -388,7 +386,6 @@ static void text_insert_help(struct menu *menu)
str_free(&help);
}
-
static void text_insert_msg(const char *title, const char *message)
{
GtkTextBuffer *buffer;
@@ -409,7 +406,6 @@ static void text_insert_msg(const char *title, const char *message)
NULL);
}
-
/* Main Windows Callbacks */
void on_save_activate(GtkMenuItem * menuitem, gpointer user_data);
@@ -457,13 +453,11 @@ gboolean on_window1_delete_event(GtkWidget * widget, GdkEvent * event,
return FALSE;
}
-
void on_window1_destroy(GtkObject * object, gpointer user_data)
{
gtk_main_quit();
}
-
void
on_window1_size_request(GtkWidget * widget,
GtkRequisition * requisition, gpointer user_data)
@@ -483,10 +477,8 @@ on_window1_size_request(GtkWidget * widget,
gtk_paned_set_position(GTK_PANED(vpaned), 2 * h / 3);
}
-
/* Menu & Toolbar Callbacks */
-
static void
load_filename(GtkFileSelection * file_selector, gpointer user_data)
{
@@ -520,14 +512,12 @@ void on_load1_activate(GtkMenuItem * menuitem, gpointer user_data)
gtk_widget_show(fs);
}
-
void on_save_activate(GtkMenuItem * menuitem, gpointer user_data)
{
if (conf_write(NULL))
text_insert_msg("Error", "Unable to save configuration !");
}
-
static void
store_filename(GtkFileSelection * file_selector, gpointer user_data)
{
@@ -561,14 +551,12 @@ void on_save_as1_activate(GtkMenuItem * menuitem, gpointer user_data)
gtk_widget_show(fs);
}
-
void on_quit1_activate(GtkMenuItem * menuitem, gpointer user_data)
{
if (!on_window1_delete_event(NULL, NULL, NULL))
gtk_widget_destroy(GTK_WIDGET(main_wnd));
}
-
void on_show_name1_activate(GtkMenuItem * menuitem, gpointer user_data)
{
GtkTreeViewColumn *col;
@@ -579,7 +567,6 @@ void on_show_name1_activate(GtkMenuItem * menuitem, gpointer user_data)
gtk_tree_view_column_set_visible(col, show_name);
}
-
void on_show_range1_activate(GtkMenuItem * menuitem, gpointer user_data)
{
GtkTreeViewColumn *col;
@@ -597,7 +584,6 @@ void on_show_range1_activate(GtkMenuItem * menuitem, gpointer user_data)
}
-
void on_show_data1_activate(GtkMenuItem * menuitem, gpointer user_data)
{
GtkTreeViewColumn *col;
@@ -608,7 +594,6 @@ void on_show_data1_activate(GtkMenuItem * menuitem, gpointer user_data)
gtk_tree_view_column_set_visible(col, show_value);
}
-
void
on_set_option_mode1_activate(GtkMenuItem *menuitem, gpointer user_data)
{
@@ -617,7 +602,6 @@ on_set_option_mode1_activate(GtkMenuItem *menuitem, gpointer user_data)
display_tree(&rootmenu); /* instead of update_tree to speed-up */
}
-
void
on_set_option_mode2_activate(GtkMenuItem *menuitem, gpointer user_data)
{
@@ -626,7 +610,6 @@ on_set_option_mode2_activate(GtkMenuItem *menuitem, gpointer user_data)
display_tree(&rootmenu); /* instead of update_tree to speed-up */
}
-
void
on_set_option_mode3_activate(GtkMenuItem *menuitem, gpointer user_data)
{
@@ -635,7 +618,6 @@ on_set_option_mode3_activate(GtkMenuItem *menuitem, gpointer user_data)
display_tree(&rootmenu); /* instead of update_tree to speed-up */
}
-
void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data)
{
GtkWidget *dialog;
@@ -666,7 +648,6 @@ void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data)
gtk_widget_show_all(dialog);
}
-
void on_about1_activate(GtkMenuItem * menuitem, gpointer user_data)
{
GtkWidget *dialog;
@@ -684,7 +665,6 @@ void on_about1_activate(GtkMenuItem * menuitem, gpointer user_data)
gtk_widget_show_all(dialog);
}
-
void on_license1_activate(GtkMenuItem * menuitem, gpointer user_data)
{
GtkWidget *dialog;
@@ -703,7 +683,6 @@ void on_license1_activate(GtkMenuItem * menuitem, gpointer user_data)
gtk_widget_show_all(dialog);
}
-
void on_back_clicked(GtkButton * button, gpointer user_data)
{
enum prop_type ptype;
@@ -718,13 +697,11 @@ void on_back_clicked(GtkButton * button, gpointer user_data)
gtk_widget_set_sensitive(back_btn, FALSE);
}
-
void on_load_clicked(GtkButton * button, gpointer user_data)
{
on_load1_activate(NULL, user_data);
}
-
void on_single_clicked(GtkButton * button, gpointer user_data)
{
view_mode = SINGLE_VIEW;
@@ -733,7 +710,6 @@ void on_single_clicked(GtkButton * button, gpointer user_data)
display_tree_part();
}
-
void on_split_clicked(GtkButton * button, gpointer user_data)
{
gint w, h;
@@ -749,7 +725,6 @@ void on_split_clicked(GtkButton * button, gpointer user_data)
gtk_widget_set_sensitive(back_btn, FALSE);
}
-
void on_full_clicked(GtkButton * button, gpointer user_data)
{
view_mode = FULL_VIEW;
@@ -760,19 +735,16 @@ void on_full_clicked(GtkButton * button, gpointer user_data)
gtk_widget_set_sensitive(back_btn, FALSE);
}
-
void on_collapse_clicked(GtkButton * button, gpointer user_data)
{
gtk_tree_view_collapse_all(GTK_TREE_VIEW(tree2_w));
}
-
void on_expand_clicked(GtkButton * button, gpointer user_data)
{
gtk_tree_view_expand_all(GTK_TREE_VIEW(tree2_w));
}
-
/* CTree Callbacks */
/* Change hex/int/string value in the cell */
@@ -874,7 +846,6 @@ static gint column2index(GtkTreeViewColumn * column)
return -1;
}
-
/* User click: update choice (full) or goes down (single) */
gboolean
on_treeview2_button_press_event(GtkWidget * widget,
@@ -976,7 +947,6 @@ on_treeview2_key_press_event(GtkWidget * widget,
return FALSE;
}
-
/* Row selection changed: update help */
void
on_treeview2_cursor_changed(GtkTreeView * treeview, gpointer user_data)
@@ -992,7 +962,6 @@ on_treeview2_cursor_changed(GtkTreeView * treeview, gpointer user_data)
}
}
-
/* User click: display sub-tree in the right frame. */
gboolean
on_treeview1_button_press_event(GtkWidget * widget,
@@ -1032,7 +1001,6 @@ on_treeview1_button_press_event(GtkWidget * widget,
return FALSE;
}
-
/* Fill a row of strings */
static gchar **fill_row(struct menu *menu)
{
@@ -1157,7 +1125,6 @@ static gchar **fill_row(struct menu *menu)
return row;
}
-
/* Set the node content with a row of strings */
static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row)
{
@@ -1193,7 +1160,6 @@ static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row)
g_object_unref(pix);
}
-
/* Add a node to the tree */
static void place_node(struct menu *menu, char **row)
{
@@ -1204,7 +1170,6 @@ static void place_node(struct menu *menu, char **row)
set_node(node, menu, row);
}
-
/* Find a node in the GTK+ tree */
static GtkTreeIter found;
@@ -1240,7 +1205,6 @@ GtkTreeIter *gtktree_iter_find_node(GtkTreeIter * parent,
return NULL;
}
-
/*
* Update the tree by adding/removing entries
* Does not change other nodes
@@ -1329,7 +1293,6 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
}
}
-
/* Display the whole tree (single/split/full view) */
static void display_tree(struct menu *menu)
{
@@ -1439,7 +1402,6 @@ void fixup_rootmenu(struct menu *menu)
}
}
-
/* Main */
int main(int ac, char *av[])
{
diff --git a/scripts/kconfig/list.h b/scripts/kconfig/list.h
index 06e8d555d8..9f1d16a43c 100644
--- a/scripts/kconfig/list.h
+++ b/scripts/kconfig/list.h
@@ -20,12 +20,10 @@
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
-
struct list_head {
struct list_head *next, *prev;
};
-
#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 9eb7c837cd..2daf47f57c 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -131,7 +131,6 @@ static inline tristate sym_get_tristate_value(struct symbol *sym)
return sym->curr.tri;
}
-
static inline struct symbol *sym_get_choice_value(struct symbol *sym)
{
return (struct symbol *)sym->curr.val;
diff --git a/scripts/kconfig/lxdialog/dialog.h b/scripts/kconfig/lxdialog/dialog.h
index 68b565e3c4..7675c4702a 100644
--- a/scripts/kconfig/lxdialog/dialog.h
+++ b/scripts/kconfig/lxdialog/dialog.h
@@ -213,7 +213,6 @@ int dialog_yesno(const char *title, const char *prompt, int height, int width);
int dialog_msgbox(const char *title, const char *prompt, int height,
int width, int pause);
-
typedef void (*update_text_fn)(char *buf, size_t start, size_t end, void
*_data);
int dialog_textbox(const char *title, char *tbuf, int initial_height,
diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c
index 4e339b1266..12e68c0fb6 100644
--- a/scripts/kconfig/lxdialog/textbox.c
+++ b/scripts/kconfig/lxdialog/textbox.c
@@ -33,7 +33,6 @@ static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw,
wrefresh(dialog);
}
-
/*
* Display text from a file in a dialog box.
*
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 4cf15d449c..0fe7f3255a 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -853,7 +853,6 @@ struct gstr get_relations_str(struct symbol **sym_arr, struct list_head *head)
return res;
}
-
void menu_get_ext_help(struct menu *menu, struct gstr *help)
{
struct symbol *sym = menu->sym;
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 5cbdb92e11..ca878212f0 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -687,7 +687,6 @@ static int do_exit(void)
return 0;
}
-
static void search_conf(void)
{
struct symbol **sym_arr;
@@ -731,7 +730,6 @@ again:
str_free(&title);
}
-
static void build_conf(struct menu *menu)
{
struct symbol *sym;
diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c
index 88874acfda..2a3b853e7e 100644
--- a/scripts/kconfig/nconf.gui.c
+++ b/scripts/kconfig/nconf.gui.c
@@ -143,7 +143,6 @@ void set_colors(void)
}
}
-
/* this changes the windows attributes !!! */
void print_in_middle(WINDOW *win,
int starty,
@@ -154,7 +153,6 @@ void print_in_middle(WINDOW *win,
{ int length, x, y;
float temp;
-
if (win == NULL)
win = stdscr;
getyx(win, y, x);
@@ -256,7 +254,6 @@ int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...)
int i, x, y;
int res = -1;
-
va_start(ap, btn_num);
for (i = 0; i < btn_num; i++) {
btn = va_arg(ap, char *);
@@ -280,7 +277,6 @@ int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...)
y = (getmaxy(stdscr)-(msg_lines+4))/2;
x = (getmaxx(stdscr)-(total_width+4))/2;
-
/* create the windows */
if (btn_num > 0)
win_rows = msg_lines+4;
@@ -315,7 +311,6 @@ int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...)
set_menu_mark(menu, "");
post_menu(menu);
-
touchwin(win);
refresh_all_windows(main_window);
while ((res = wgetch(win))) {