Skip to content

Commit b989850

Browse files
ebiedermdavem330
authored andcommitted
net ax25: Fix the build when sysctl support is disabled.
Randy Dunlap <rdunlap@xenotime.net> reported: > On 04/23/2012 12:07 AM, Stephen Rothwell wrote: > >> Hi all, >> >> Changes since 20120420: > > > include/net/ax25.h:447:75: error: expected ';' before '}' token > > static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0 }; > static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {}; > > First function: move ';' inside braces. > Second function: drop the ';'. Put the semicolons where it makes sense. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 48c7495 commit b989850

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/net/ax25.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ extern void ax25_uid_free(void);
444444
extern int ax25_register_dev_sysctl(ax25_dev *ax25_dev);
445445
extern void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev);
446446
#else
447-
static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0 };
448-
static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {};
447+
static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0; }
448+
static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {}
449449
#endif /* CONFIG_SYSCTL */
450450

451451
#endif

0 commit comments

Comments
 (0)