Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030380AbdIZQuq (ORCPT ); Tue, 26 Sep 2017 12:50:46 -0400 Received: from mout.web.de ([212.227.17.11]:50677 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935892AbdIZQun (ORCPT ); Tue, 26 Sep 2017 12:50:43 -0400 Subject: Re: [PATCH 1/6] [media] tda8261: Use common error handling code in tda8261_set_params() To: =?UTF-8?Q?Christoph_B=c3=b6hmwalder?= , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Max Kellermann , LKML , kernel-janitors@vger.kernel.org References: <15d74bee-7467-4687-24e1-3501c22f6d75@users.sourceforge.net> <28425caf-2736-96ae-00a7-3fb273b1f9d5@users.sourceforge.net> From: SF Markus Elfring Message-ID: <792ce307-e8a1-8159-c601-f3188fa82226@users.sourceforge.net> Date: Tue, 26 Sep 2017 18:50:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:CsxdZd9BmDdm82kcj/PXQDgFsBavAf5H/U9WAv7zvz9Fjur1FZI lQW0HjWCiK+8Fb5ad598FxNBE57feMHQaOJp27u43WPQuj/ksyKkEnt8FmNC1xZFAb4LmU3 Sx0BtmGV4EO8vrM3zYcxlYEkYeHnINJY33iD0YL84NyyNkAofMDsja3VFDdDUVwqGULVDfE /alI8sE8Aj4MwLFjt3d4w== X-UI-Out-Filterresults: notjunk:1;V01:K0:p5MIKMyd3dA=:SbO3b9voduqDYrj678RNBT 6za/3RY3bUEDWinfB0Hd2Ghu+luNx/ARGeEqgwJAlmv39YlJbMuMAi6duELOOkZvLt5xMptch E+WDceKGuCVgLEY7PtX+Ee9w3ZQ5ogKyo5HXCUYdhItUpf9/1MdwucujVWLYjXQg8OqG6W595 NLcT9NCm52rz0WUGvwNwPrfJkg4vUEGwKgqTR0c9bDRau5kL2aaQQfLYkstDWzwpSZY3Cx6bV 2Y1SYuKa7QLPxDvivF461Lqig8MBAx6Co5n3bA+/1lO8vl/cCSDiLUk6AwCeWqdxBXyeOOjlr fpZmtLEagSiDWMOw7i05j6h3aPkJGGv0ydCWXCqqjPP52TgsdZJz2F+Zve+t6bLXxsdttb1RR WzY4ZM3PAdP/DHPvwdfgyE4QR1rxscZLQuk1z0nlstXmcawKDsZs14fGsIejh1mFVJOnOq6Yo qg5+waE4KbPvHGdaFjelkczDOcpxe1PmzDT5RGTLkbUwJxzLOKWttlqQrveKE4twEUJryt+Xn Bu6fxJ/tTBf0lEig0cyix+bHHX3MeA9BFhamRE6czSHw+5FODTGGBlyWRCmE0AkRkoFxy36Hp TC7meGKawKVXL8cY/eqeEEUxUtTeqo/XhPXXX0wlvnmzfx5627cCSKwjs5oamfyG+bO/2ifVH bFJUHp6jJEjWxRm7LWegZowLTqbuDTOLjQj1FGkYYdTJctN+LmcyFuIdskclZV7lCE20LAYdC MHo0rGrdKnlESJlqdz6AOdxd0XbAlDyehpTkHtVpjYxLi/C2WrvQlXeTdV00AEOTnc/urIREe Z+D8+ziFACRJyGAejhZIscgAy1Gd58TftNWtVJLTPpJbzwZ0/k= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 614 Lines: 24 >> @@ -129,18 +129,18 @@ static int tda8261_set_params(struct dvb_frontend *fe) >> >> /* Set params */ >> err = tda8261_write(state, buf); >> - if (err < 0) { >> - pr_err("%s: I/O Error\n", __func__); >> - return err; >> - } >> + err = tda8261_get_status(fe, &status); >> + if (err < 0) >> + goto report_failure; >> + > > Is this change really correct? Doesn't it query the status once more > often than before? Thanks for your inquiry. Unfortunately, I made a copy mistake at this source code place. When should I send a corrected suggestion for this update step in the patch series? Regards, Markus