From patchwork Sat Dec 26 21:35:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Henrie X-Patchwork-Id: 11990449 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F59DC433E0 for ; Sat, 26 Dec 2020 21:41:35 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 063AA2184D for ; Sat, 26 Dec 2020 21:41:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 063AA2184D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 78C791830; Sat, 26 Dec 2020 22:40:43 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 78C791830 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1609018893; bh=OtJwW2dEDE9yvmdjhTCGV7+lk7O5ntp8OkFUMCAIGlE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=IQ0Kt56gr0Jhkl/DHRFNHn67ttEByKy3yXqGXPFe/ntGiYrUgQsPeZp0OafX5AApF RP4/qKsnfvTA2a4Yq+LeUKtYZ8p/ZeSUVKv7yPAEF/XgwP/KHVDLpq7jFLeimqR+3l FroiD2r7hnNjci3D1Xb4mpkpzrqB/s4C/s9aB3Ec= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 265F2F804F3; Sat, 26 Dec 2020 22:36:52 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BCAA0F804CA; Sat, 26 Dec 2020 22:36:45 +0100 (CET) Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B4B9BF800C8 for ; Sat, 26 Dec 2020 22:36:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B4B9BF800C8 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uWk2fmKX" Received: by mail-pj1-x1030.google.com with SMTP id iq13so3977299pjb.3 for ; Sat, 26 Dec 2020 13:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SGvZhjq5QthoZWs63qADXvtqQZNJI6Nm2I7oDs2JzP8=; b=uWk2fmKXwSvrqYS5a+lcHPZFPlb7ZzcLF3hOVyx+bgenNq5vrfJAoYNcf5rei5eC/9 Keg8VdcpkQLt1dQpHjONrIdhVBYA+0ZQl0zciQU/StQCfA7TSomEqsSLcj2eJfCC1qkm PZspiDA4WrFsKNOpXBZGCnKw26/ifoYTcCY1ObNYYT0nZuKpKEpoqqgpg+1E+iQoku+4 KIzTBpwdyuXC0RHF9okbj+MZWA2Zk6idNPDzQtbTDbVkwCIHMV3VFBSg2dsaWu4M8Iu9 Na36HqSCzt0Hl8+EwN56Kc5dE8a20yLv1JYwqdwjqgDYD5rut7rMLABwmTnIuwzSR/uZ sCyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SGvZhjq5QthoZWs63qADXvtqQZNJI6Nm2I7oDs2JzP8=; b=F/VFxpqYYs/aOhdLrqJfPJaOkJ51kxyhGfquoYulH5462of1c5UQw46/DK1R6BFFwm dXKFHrbntw/2thwhEkG1tbcV3/zkPerWd3temf+5xe6Ptz0shl3iMWuI46WWuvUSv2iL SkQSbfgD8MtP25ksVjQrazYvt6eowsxvn7Z6WXj6FYebdUtM7Aovwe0wCe6n5y7g0dhx 0oXy8JTSZRhJ3Wts93Q7NNqxGHxjsX2j6tRb2PVg7I0LzaUqxgFX4OVHOOuYlbTTch+h vo2geYe4Qi4nq23B3lAFC0UAaB7wkg5LGJ+gX5BhAQgkwZOlzTxVYUebL8M+N6vkCUmc josw== X-Gm-Message-State: AOAM532sY+G7W2SyY3aNYcL09hFH35mXlbwajp8MI7OXoOyQqCu8m37o 4Dxa76SoC367lejOyQlVpzlyFRQqSLdj8A== X-Google-Smtp-Source: ABdhPJyhB2/PnmlaWcmPctU560N3oVfw9Mu0GVJFVgAPnXN294POfrBfg2yDjxRvTo66gGwMDovOvQ== X-Received: by 2002:a17:90a:be0a:: with SMTP id a10mr14385329pjs.139.1609018598228; Sat, 26 Dec 2020 13:36:38 -0800 (PST) Received: from viper.bn-i.net ([2001:470:b:65c:b92f:8d47:b3dd:6388]) by smtp.gmail.com with ESMTPSA id b12sm30990560pft.114.2020.12.26.13.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Dec 2020 13:36:37 -0800 (PST) From: Alex Henrie To: alsa-devel@alsa-project.org, perex@perex.cz, tiwai@suse.de Subject: [PATCH 9/9] conf: remove dead code from get_hexachar Date: Sat, 26 Dec 2020 14:35:47 -0700 Message-Id: <20201226213547.175071-10-alexhenrie24@gmail.com> X-Mailer: git-send-email 2.29.2.368.ge46b91665e.dirty In-Reply-To: <20201226213547.175071-1-alexhenrie24@gmail.com> References: <20201226213547.175071-1-alexhenrie24@gmail.com> MIME-Version: 1.0 Cc: Alex Henrie X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Signed-off-by: Alex Henrie --- src/conf.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/conf.c b/src/conf.c index 44d1bfde..970ad643 100644 --- a/src/conf.c +++ b/src/conf.c @@ -877,16 +877,9 @@ static int get_nonwhite(input_t *input) static inline int get_hexachar(input_t *input) { - int c, num = 0; - + int c; c = get_char(input); - if (c >= '0' && c <= '9') num |= (c - '0') << 4; - else if (c >= 'a' && c <= 'f') num |= (c - 'a') << 4; - else if (c >= 'A' && c <= 'F') num |= (c - 'A') << 4; c = get_char(input); - if (c >= '0' && c <= '9') num |= (c - '0') << 0; - else if (c >= 'a' && c <= 'f') num |= (c - 'a') << 0; - else if (c >= 'A' && c <= 'F') num |= (c - 'A') << 0; return c; }