aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/siano/smsdvb.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-08 09:54:49 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-08 10:57:14 -0400
commit8179de98cd35242446f4c7a6ecdd73c6c41f0cfb (patch)
treec7c5236de69b8e2c5eae314c7d81dd7b844182a1 /drivers/media/common/siano/smsdvb.h
parentmedia: isp: fix a warning about a wrong struct initializer (diff)
downloadlinux-dev-8179de98cd35242446f4c7a6ecdd73c6c41f0cfb.tar.xz
linux-dev-8179de98cd35242446f4c7a6ecdd73c6c41f0cfb.zip
siano: get rid of an unused return code for debugfs register
The siano's debugfs register logic is optional: it should be ok if it fails. So, no need to check if debufs register succeeded. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/common/siano/smsdvb.h')
-rw-r--r--drivers/media/common/siano/smsdvb.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/common/siano/smsdvb.h b/drivers/media/common/siano/smsdvb.h
index b15754d95ec0..befeb9817e54 100644
--- a/drivers/media/common/siano/smsdvb.h
+++ b/drivers/media/common/siano/smsdvb.h
@@ -107,7 +107,7 @@ struct RECEPTION_STATISTICS_PER_SLICES_S {
int smsdvb_debugfs_create(struct smsdvb_client_t *client);
void smsdvb_debugfs_release(struct smsdvb_client_t *client);
-int smsdvb_debugfs_register(void);
+void smsdvb_debugfs_register(void);
void smsdvb_debugfs_unregister(void);
#else
@@ -119,10 +119,7 @@ static inline int smsdvb_debugfs_create(struct smsdvb_client_t *client)
static inline void smsdvb_debugfs_release(struct smsdvb_client_t *client) {}
-static inline int smsdvb_debugfs_register(void)
-{
- return 0;
-};
+static inline void smsdvb_debugfs_register(void) {}
static inline void smsdvb_debugfs_unregister(void) {};