Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f22c1196 authored by Roland Dreier's avatar Roland Dreier Committed by Nicholas Bellinger
Browse files

target: Fix double test of inquiry_prod



The code in transport_add_device_to_core_hba() really intends to make sure
that neither inquiry_prod nor inquiry_rev is NULL.

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
Signed-off-by: default avatarNicholas A. Bellinger <nab@linux-iscsi.org>
parent e3d6f909
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1623,7 +1623,7 @@ struct se_device *transport_add_device_to_core_hba(
	 * setup.
	 * setup.
	 */
	 */
	if (dev->transport->transport_type != TRANSPORT_PLUGIN_PHBA_PDEV) {
	if (dev->transport->transport_type != TRANSPORT_PLUGIN_PHBA_PDEV) {
		if (!(inquiry_prod) || !(inquiry_prod)) {
		if (!inquiry_prod || !inquiry_rev) {
			printk(KERN_ERR "All non TCM/pSCSI plugins require"
			printk(KERN_ERR "All non TCM/pSCSI plugins require"
				" INQUIRY consts\n");
				" INQUIRY consts\n");
			goto out;
			goto out;