summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-30 14:20:34 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-03-30 14:20:34 (GMT)
commit84f6def072778e30bbaa7c98256e7e421a3c5bc4 (patch)
tree31e09b10eb37bcc109d74a8df8e3097938bdfed0
parent2004fa1bc8dee80f5f9ea3f59ab77c64075b3d6e (diff)
downloadbusybox-84f6def072778e30bbaa7c98256e7e421a3c5bc4.tar.gz
busybox-84f6def072778e30bbaa7c98256e7e421a3c5bc4.tar.bz2
dpkg: remove redundant check
function old new delta dpkg_main 4008 3991 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/dpkg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 7caccef..219512b 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1739,7 +1739,6 @@ int dpkg_main(int argc UNUSED_PARAM, char **argv)
//if (opt & OPT_unpack) ... // -u (--unpack in official dpkg)
if (!(opt & OPTMASK_cmd) /* no cmd */
|| ((opt & OPTMASK_cmd) & ((opt & OPTMASK_cmd)-1)) /* more than one cmd */
- || (!(opt & OPT_list_installed) && !argv[0]) /* - all except -l require argument */
) {
bb_show_usage();
}