mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-28 14:10:34 +00:00
dpkg: remove redundant check
function old new delta dpkg_main 4008 3991 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2004fa1bc8
commit
84f6def072
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user