Thread (55 messages) 55 messages, 4 authors, 2021-06-24

Re: [PATCH 06/18] scsi: Use dummy inquiry data for the host device

From: Bart Van Assche <bvanassche@acm.org>
Date: 2021-05-04 02:52:39

On 5/3/21 8:03 AM, Hannes Reinecke wrote:
+/**
+ * scsi_device_is_host_dev - Check if a scsi device is a host device
+ * @sdev: SCSI device to test
+ *
+ * Returns: true if @sdev is a host device, false otherwise
+ */
+bool scsi_device_is_host_dev(struct scsi_device *sdev)
+{
+	return ((const unsigned char *)sdev->inquiry == scsi_null_inquiry);
+}
No parentheses around the expression in a return statement please.
+EXPORT_SYMBOL_GPL(scsi_device_is_host_dev);
Does this mean that this function will be used outside the SCSI core?

Thanks,

Bart.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help