Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754717AbZCJLSP (ORCPT ); Tue, 10 Mar 2009 07:18:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754173AbZCJLR7 (ORCPT ); Tue, 10 Mar 2009 07:17:59 -0400 Received: from mtagate2.de.ibm.com ([195.212.17.162]:57247 "EHLO mtagate2.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753000AbZCJLR6 (ORCPT ); Tue, 10 Mar 2009 07:17:58 -0400 From: Christian Borntraeger To: Stoyan Gaydarov Subject: Re: [PATCH 09/25] [s390] BUG to BUG_ON changes Date: Tue, 10 Mar 2009 12:17:54 +0100 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, linux-s390@vger.kernel.org References: <1236661850-8237-1-git-send-email-stoyboyker@gmail.com> <1236661850-8237-9-git-send-email-stoyboyker@gmail.com> <1236661850-8237-10-git-send-email-stoyboyker@gmail.com> In-Reply-To: <1236661850-8237-10-git-send-email-stoyboyker@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903101217.54927.borntraeger@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 814 Lines: 25 Am Tuesday 10 March 2009 06:10:34 schrieb Stoyan Gaydarov: > +++ b/drivers/s390/char/tape_std.c > @@ -39,8 +39,8 @@ tape_std_assign_timeout(unsigned long data) > int rc; > > request = (struct tape_request *) data; > - if ((device = request->device) == NULL) > - BUG(); > + device = request->device; > + BUG_ON(device == NULL); > > DBF_EVENT(3, "%08x: Assignment timeout. Device busy.\n", > device->cdev_id); Most of the patch look good. Since !pointer seems to be preferred over pointer == NULL, this hunk can be changed to BUG_ON(!device); Christian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/