Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5562761yba; Thu, 11 Apr 2019 00:20:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI+vSUYFcjGA3j0nOiHo2sde4Sy3wozULaNOYueD05A5Es5ItWss4tXnrlzBWfR+cFPRou X-Received: by 2002:a62:8381:: with SMTP id h123mr48695485pfe.226.1554967236772; Thu, 11 Apr 2019 00:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554967236; cv=none; d=google.com; s=arc-20160816; b=SjpjfxdDld55a6l2acQ2faidxpKSvoPhdQim76PTtX/JkpjxOXPPcal8naK7ODPLwO J0F60117LPFd/UR7oBELccpmUVxkg1SlpGk81Gw4wtfzn2UCxz2ivLzbDG3MBF9Fa9yE DbUEScLJj0ibc34YJXPvBuWCtdoTDOR/HPrunM3EQkFij/wFQbVyWcGIiCOAe+l0LEln X7EgATD/TcW6zPQqXrml2H0tzv+vYHt9rJkmV44bMyd6FAIxzafLQtjDdvNWFNqfuUz3 lCa6d4GhELzFKL9ZR2fp6QWc6pPVdHe1YSs0KD8BDu+tBEiCjZW7szpCGTa7fK0rAH1M Y2qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=sxLUb3lPp2thkzMjyNxBIAlI8R1FCrrSQGthadoEupg=; b=I8esAOBXA71x81qXjzpklnt/rMK9B7gAsM/ZMkI2PtvmeJtvNsBsbHoBYFO7SyZ5Js GOl6sPnLQ/aKoJ6FD5X509x76LZPBQem7se/4I5dJTcI+iPrfXeEfx+VU0h9qnsVPLQR tNrHhP2xfXvMuc8GBcEz+ULCy+ZiMDpzYdn4zyf5kuyrN48CF66KR/dKMy7I5tR92Iho crjqRG4JF6/v0S9Uf3qUKbNU4usOu1r7bm5AOY0FQ20JIIZmbhYTsgRSj3DTCUbiGvWg 2Y5KO02DK42N+HNit2OtxPECbLOoMfDH+PgYaRFyor8kbAWxgTIlUy5UQTmg3//NH9aL 9c2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si33774084pfn.135.2019.04.11.00.20.19; Thu, 11 Apr 2019 00:20:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbfDKHSI (ORCPT + 99 others); Thu, 11 Apr 2019 03:18:08 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45137 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfDKHSI (ORCPT ); Thu, 11 Apr 2019 03:18:08 -0400 Received: by mail-ed1-f67.google.com with SMTP id o26so4227923edv.12; Thu, 11 Apr 2019 00:18:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=sxLUb3lPp2thkzMjyNxBIAlI8R1FCrrSQGthadoEupg=; b=K5yScFqNR0ORSVt8G8ao5SnTXPitNnELIvHcSxEZzuiQiNpo9tLY8jg8eRoFPjACD1 mozmHcVIRZlRXFA6SBz+hY2+qAfOyGwdRNLiuk4PDQ3AYJDr+99wE/HFyavNpXWqTqik cyv1HLNDEcaBBmf92+HVYtjDQdbH5gFq7H816TIma3KkpTZ7yB2kWHQZhnr/frrFvJ5S ULanpOQJF3zgNS2VQf3Tu5YcIz/Lk1hUyDfKsujHSeJSOPAjAfNAevkYsQHfdlW5xqkN jp6+/NjCyaP9TSGkM9Z9Dx9UqjMx20g8qOqGlgaCTHHfSX8xw2vKrwaKThP/8f5ZSn/E waVw== X-Gm-Message-State: APjAAAVOZnvLm6lWXmF4XGgHgByA07cucsWPdSGtRTfIx2Sl/Qc+D1KD POUIYSe0wj8RlYn2HLLke6vcmFfm X-Received: by 2002:a05:6402:688:: with SMTP id f8mr30724450edy.189.1554967085553; Thu, 11 Apr 2019 00:18:05 -0700 (PDT) Received: from linux-x5ow.site (nat.nue.novell.com. [2620:113:80c0:5::2222]) by smtp.gmail.com with ESMTPSA id n16sm5888030ejb.28.2019.04.11.00.18.04 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 00:18:04 -0700 (PDT) Subject: Re: [PATCH 02/23] watchdog: mena21_wdt: Use 'dev' instead of dereferencing it repeatedly To: Guenter Roeck , Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org References: <1554830641-9247-1-git-send-email-linux@roeck-us.net> <1554830641-9247-3-git-send-email-linux@roeck-us.net> From: Johannes Thumshirn Openpgp: preference=signencrypt Autocrypt: addr=jth@kernel.org; prefer-encrypt=mutual; keydata= xsFNBFTTwPEBEADOadCyru0ZmVLaBn620Lq6WhXUlVhtvZF5r1JrbYaBROp8ZpiaOc9YpkN3 rXTgBx+UoDGtnz9DZnIa9fwxkcby63igMPFJEYpwt9adN6bA1DiKKBqbaV5ZbDXR1tRrSvCl 2V4IgvgVuO0ZJEt7gakOQlqjQaOvIzDnMIi/abKLSSzYAThsOUf6qBEn2G46r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rqpTmKuesmTZeB2GHzLN5GAXfNj ELHAeSVfFLPRFrjF5jjKJkpiyq98+oUnvTtDIPMTg05wSN2JtwKnoQ0TAIHWhiF6coGeEfY8 ikdVLSZDEjW54Td5aIXWCRTBWa6Zqz/G6oESF+Lchu/lDv5+nuN04KZRAwCpXLS++/givJWo M9FMnQSvt4N95dVQE3kDsasl960ct8OzxaxuevW0OV/jQEd9gH50RaFif412DTrsuaPsBz6O l2t2TyTuHm7wVUY2J3gJYgG723/PUGW4LaoqNrYQUr/rqo6NXw6c+EglRpm1BdpkwPwAng63 W5VOQMdnozD2RsDM5GfA4aEFi5m00tE+8XPICCtkduyWw+Z+zIqYk2v+zraPLs9Gs0X2C7X0 yvqY9voUoJjG6skkOToGZbqtMX9K4GOv9JAxVs075QRXL3brHtHONDt6udYobzz+ Message-ID: <34d100ba-07ab-6b1f-a635-603f6f282e54@kernel.org> Date: Thu, 11 Apr 2019 09:18:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1554830641-9247-3-git-send-email-linux@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/04/2019 19:23, Guenter Roeck wrote: > Introduce local variable 'struct device *dev' and use it instead of > dereferencing it repeatedly. > > The conversion was done automatically with coccinelle using the > following semantic patches. The semantic patches and the scripts > used to generate this commit log are available at > https://github.com/groeck/coccinelle-patches > > Cc: Johannes Thumshirn > Signed-off-by: Guenter Roeck > --- FWIW, Reviewed-by: Johannes Thumshirn