summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-01-30 11:05:29 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2011-01-30 18:18:07 +0100
commit541ec60f449e814b2799ee3518c19b357d5fd8b3 (patch)
treeb71f482c8005482887650ccf445844844fb228c0
parent9485dd02047b50ef561e6846cf5ee7406d16f682 (diff)
downloadpcmciautils-541ec60f449e814b2799ee3518c19b357d5fd8b3.tar.gz
pccardctl: remove superfluous check
We can trust our own callers. Fixes: src/pccardctl.c:82: warning: the address of 'in_file' will always evaluate as 'true' Reported-by: Alexander Mansurov <alexander.mansurov@gmail.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r--src/pccardctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pccardctl.c b/src/pccardctl.c
index fe0c8c9..a59aff9 100644
--- a/src/pccardctl.c
+++ b/src/pccardctl.c
@@ -79,9 +79,6 @@ static int pccardctl_echo_one(unsigned long socket_no, const char *in_file)
char file[SYSFS_PATH_MAX];
struct sysfs_attribute *attr;
- if (!in_file)
- return -EINVAL;
-
snprintf(file, SYSFS_PATH_MAX, "/sys/class/pcmcia_socket/pcmcia_socket%lu/%s",
socket_no, in_file);