From: "Jan Beulich" Subject: checking d->grant_table against NULL? Date: Wed, 11 Apr 2012 11:21:24 +0100 Message-ID: <4F857744020000780007D348@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org gnttab_prepare_for_transfer() is the only place in grant_table.c where such a check happens. Is this check superfluous (and hence slightly misleading), or are similar checks missing throughout the file? I suppose the former, given that domains get inserted to the hash table only after grant_table_create() ran, and get removed again before calling grant_table_destroy(). Thanks, Jan